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: | 459 / 506 |
| Referenced in: | [show references] |