Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1010898 // to332String - RGB color to 3-3-2 (e.g. "053")

JavaX fragment (include)

1  
static S to332String(int rgb) {
2  
  byte b = to332(rgb);
3  
  ret str((b >> 5) & 7) + ((b >> 2) & 7) + (b & 3);
4  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1010898
Snippet name: to332String - RGB color to 3-3-2 (e.g. "053")
Eternal ID of this version: #1010898/3
Text MD5: 616bc66da425145ac68aa2a98361d74f
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-14 20:30:46
Source code size: 111 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 505 / 499
Version history: 2 change(s)
Referenced in: [show references]