Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1025271 // colorDistance - synonym of rgbDiff

JavaX fragment (include)

1  
static float colorDistance(RGB a, RGB b) {
2  
  ret rgbDiff(a, b);
3  
}
4  
5  
6  
7  
// 0xRRGGBB - result is between 0 and 1
8  
static float colorDistance(int a, int b) {
9  
  ret rgbDiff(a, b);
10  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025271
Snippet name: colorDistance - synonym of rgbDiff
Eternal ID of this version: #1025271/1
Text MD5: 96b71f366fa56c092a8b6ce0bf2dfc95
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-17 01:51:19
Source code size: 177 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 173 / 218
Referenced in: [show references]