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)

static float colorDistance(RGB a, RGB b) {
  ret rgbDiff(a, b);
}



// 0xRRGGBB - result is between 0 and 1
static float colorDistance(int a, int b) {
  ret rgbDiff(a, b);
}

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: 237 / 283
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1025272 - colorSimilarity - 1-colorDistance