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

11
LINES

< > BotCompany Repo | #1014940 - toColor

JavaX fragment (include)

static Color toColor(RGB rgb) {
  ret rgb == null ? null : rgb.getColor();
}

static Color toColor(int rgb) {
  ret new Color(rgb);
}

static Color toColor(S hex) {
  ret awtColor(hex);
}

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

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: 210 / 226
Version history: 2 change(s)
Referenced in: [show references]

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