Libraryless. Click here for Pure Java version (37L/1K).
1 | static int hi15ToRGBInt_dirty(short hi15) {
|
2 | int r = hi15 >> 10; |
3 | int g = (hi15 >> 5) & 0x1F; |
4 | int b = hi15 & 0x1F; |
5 | ret (r << 19) | (g << 11) | (b << 3); |
6 | } |
Began life as a copy of #1005377
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035586 |
| Snippet name: | hi15ToRGBInt_dirty |
| Eternal ID of this version: | #1035586/3 |
| Text MD5: | 2a2c786536e81c0560dc9fb6f9bc4d84 |
| Transpilation MD5: | 21e655d728acfe10e5d597ad728a67be |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-06-23 23:28:04 |
| Source code size: | 167 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 408 / 496 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |