Transpiled version (13179L) is out of date.
static int hi15ToRGBInt_clean(short hi15) { int r = (hi15 >> 10) & 0x1F; int g = (hi15 >> 5) & 0x1F; int b = hi15 & 0x1F; double factor = 255.0/31; meta-for r also as g, b { r = iround(r*factor); } ret (r << 16) | (g << 8) | b; }
Began life as a copy of #1035586
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035597 |
| Snippet name: | hi15ToRGBInt_clean |
| Eternal ID of this version: | #1035597/6 |
| Text MD5: | bbbc01fd24c923063761679efea7913d |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-07-17 20:38:02 |
| Source code size: | 258 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 359 / 483 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |