Libraryless. Click here for Pure Java version (9408L/51K).
1 | static short rgbIntToHi15(int rgb) { |
2 | int r = (rgb >> 16) & 0xFF; |
3 | int g = (rgb >> 8) & 0xFF; |
4 | int b = rgb & 0xFF; |
5 | ret rgbToHi15(r, g, b); |
6 | } |
Began life as a copy of #1035586
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035587 |
Snippet name: | rgbIntToHi15 |
Eternal ID of this version: | #1035587/5 |
Text MD5: | e29baeb46d385080b86b711d0b566c91 |
Transpilation MD5: | 572b924368f231180968ae4de7ff490a |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-08-05 22:23:55 |
Source code size: | 152 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 186 / 234 |
Version history: | 4 change(s) |
Referenced in: | [show references] |