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

4
LINES

< > BotCompany Repo | #1029796 // cssRGBToHex

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2765L/17K).

sS cssRGBToHex(S rgb) {
  L<Int> ints = lmap parseInt(filter isInteger(javaTokC(rgb)));
  ret l(ints) == 3 ? join(map(ints, i -> formatHex(i, 2))) : null;
}

Author comment

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