Libraryless. Click here for Pure Java version (2851L/20K).
1 | sS toWebColorName(int rgb) { |
2 | new Lowest<S> best; |
3 | for (PairS p : webColorNamePairs()) |
4 | best.put(p.a, rgbDiff(hexToInt(p.b), rgb)); |
5 | ret best!; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027254 |
Snippet name: | toWebColorName |
Eternal ID of this version: | #1027254/2 |
Text MD5: | 513fb2673b627cf89cd89bf48b15e529 |
Transpilation MD5: | d48e258adf859f6d6451c479a7e6839e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-26 20:46:27 |
Source code size: | 156 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 166 / 237 |
Version history: | 1 change(s) |
Referenced in: | [show references] |