Libraryless. Click here for Pure Java version (2765L/17K).
1 | sS cssRGBToHex(S rgb) { |
2 | L<Int> ints = lmap parseInt(filter isInteger(javaTokC(rgb))); |
3 | ret l(ints) == 3 ? join(map(ints, i -> formatHex(i, 2))) : null; |
4 | } |
Began life as a copy of #1029794
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: | #1029796 |
Snippet name: | cssRGBToHex |
Eternal ID of this version: | #1029796/1 |
Text MD5: | b0654a0fd1de59e3a52bf29b883aed79 |
Transpilation MD5: | ac8f839cf75f175efea6018e9ba221fa |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-09-17 12:34:42 |
Source code size: | 159 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 176 / 267 |
Referenced in: | [show references] |