static void varyPolyWithColor(PolygonWithColor l, int w, int h) { int i = random(l(l.points)+1); if (i == 0) l.color = varyColor(l.color); else l.points.set(i-1, varyPoint(l.points.get(i-1), w, h)); }
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: | 377 / 417 |
Version history: | 1 change(s) |
Referenced in: | [show references] |