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

6
LINES

< > BotCompany Repo | #1024555 // rgbFromInt

JavaX fragment (include)

static RGB rgbFromInt(int rgb) {
  ret RGB(
    ((rgb >> 16) & 0xFF)/255f,
    ((rgb >> 8) & 0xFF)/255f,
     (rgb & 0xFF)/255f);
}

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: #1024555
Snippet name: rgbFromInt
Eternal ID of this version: #1024555/1
Text MD5: 7c5de63369bae08eb3a0069dba9e4dbc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-18 13:07:41
Source code size: 138 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 197 / 250
Referenced in: [show references]