1 | static float[] rgbToHSB(RGB rgb) { |
2 | ret rgb == null ? null : Color.RGBtoHSB(rgb.redInt(), rgb.greenInt(), rgb.blueInt(), new float[3]); |
3 | } |
4 | |
5 | static float[] rgbToHSB(S hexCode) { |
6 | ret hexCode == null ? null : rgbToHSB(new RGB(hexCode)); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020327 |
Snippet name: | rgbToHSB |
Eternal ID of this version: | #1020327/2 |
Text MD5: | bd63640a449b9474a3d0f7d34848e8fd |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-14 14:40:57 |
Source code size: | 243 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 212 / 258 |
Version history: | 1 change(s) |
Referenced in: | [show references] |