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

6
LINES

< > BotCompany Repo | #1034886 // rgbIntFromDoubles_fullAlpha

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

Transpiled version (5114L) is out of date.

static int rgbIntFromDoubles_fullAlpha(dbl r, dbl g, dbl b) {
  ret 0xFF000000 |
    limitToUByte(iround(r)) << 16 |
    limitToUByte(iround(g)) << 8 | 
    limitToUByte(iround(b));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034886
Snippet name: rgbIntFromDoubles_fullAlpha
Eternal ID of this version: #1034886/4
Text MD5: b7c607d54a75078b90d1a5748eb6cf14
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-13 02:00:41
Source code size: 188 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 137 / 196
Version history: 3 change(s)
Referenced in: [show references]