1 | static RGB rgbFromInt(int rgb) {
|
2 | ret RGB( |
3 | ((rgb >> 16) & 0xFF)/255f, |
4 | ((rgb >> 8) & 0xFF)/255f, |
5 | (rgb & 0xFF)/255f); |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1024555 |
| Snippet name: | rgbFromInt |
| Eternal ID of this version: | #1024555/1 |
| Text MD5: | 7c5de63369bae08eb3a0069dba9e4dbc |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-08-18 13:07:41 |
| Source code size: | 138 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 404 / 469 |
| Referenced in: | [show references] |