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

3
LINES

< > BotCompany Repo | #1029794 // hexColorToCSSRGB

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

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

sS hexColorToCSSRGB(S hex) {
  ret empty(hex) ? null : "rgb(" + joinWithComma(rgbToIntList(RGB(hex))) + ")";
}

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: #1029794
Snippet name: hexColorToCSSRGB
Eternal ID of this version: #1029794/1
Text MD5: 59923d4583e021f695f252f5fb2ea05a
Transpilation MD5: 9d7dde9fa310dc020c1c0fc3cde48030
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:28:52
Source code size: 112 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 233 / 330
Referenced in: [show references]