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

4
LINES

< > BotCompany Repo | #1006969 // rainbowColor

JavaX fragment (include)

// i = 0 to n-1
static Color rainbowColor(int i, int n) {
  ret Color.getHSBColor(mod(i, n)/(float) n, 1f, 0.5f);
}

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: #1006969
Snippet name: rainbowColor
Eternal ID of this version: #1006969/1
Text MD5: 41d5ae59df51d8548eca7de0543a4a2b
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-21 16:37:59
Source code size: 118 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 416 / 470
Referenced in: [show references]