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

5
LINES

< > BotCompany Repo | #1014976 // varyPolyWithColor

JavaX fragment (include)

1  
static void varyPolyWithColor(PolygonWithColor l, int w, int h) {
2  
  int i = random(l(l.points)+1);
3  
  if (i == 0) l.color = varyColor(l.color);
4  
  else l.points.set(i-1, varyPoint(l.points.get(i-1), w, h));
5  
}

Author comment

Began life as a copy of #1014954

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: #1014976
Snippet name: varyPolyWithColor
Eternal ID of this version: #1014976/2
Text MD5: 08e3c438df2dbfa9ba13932e060fb8de
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-06 19:34:05
Source code size: 210 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 379 / 420
Version history: 1 change(s)
Referenced in: [show references]