Transpiled version (13179L) is out of date.
1 | static int hi15ToRGBInt_clean(short hi15) { |
2 | int r = (hi15 >> 10) & 0x1F; |
3 | int g = (hi15 >> 5) & 0x1F; |
4 | int b = hi15 & 0x1F; |
5 | double factor = 255.0/31; |
6 | meta-for r also as g, b { |
7 | r = iround(r*factor); |
8 | } |
9 | ret (r << 16) | (g << 8) | b; |
10 | } |
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: | 133 / 206 |
Version history: | 5 change(s) |
Referenced in: | [show references] |