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

11
LINES

< > BotCompany Repo | #1014940 - toColor

JavaX fragment (include)

1  
static Color toColor(RGB rgb) {
2  
  ret rgb == null ? null : rgb.getColor();
3  
}
4  
5  
static Color toColor(int rgb) {
6  
  ret new Color(rgb);
7  
}
8  
9  
static Color toColor(S hex) {
10  
  ret awtColor(hex);
11  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014940
Snippet name: toColor
Eternal ID of this version: #1014940/3
Text MD5: 15ed27bc519ae4fb7ecc52493b6ae3fd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-06 16:31:04
Source code size: 197 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 275 / 314
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1014940 & http://1014940.tinybrain.de