please include function randomLineWithColor. static void varyLineWithColor(LineWithColor l, int w, int h) { int i = random(randomLineWithColor_minLineWidth < randomLineWithColor_maxLineWidth ? 4 : 3); if (i == 0) l.a = varyPoint(l.a, w, h); else if (i == 1) l.b = varyPoint(l.b, w, h); else if (i == 2) l.color = varyColor(l.color); else { l.width = varyIntInRange(l.width, randomLineWithColor_minLineWidth, randomLineWithColor_maxLineWidth); limitLineThickness(l, randomLineWithColor_maxThickness, randomLineWithColor_minLineWidth); } }
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: | #1015015 |
| Snippet name: | varyLineWithColor |
| Eternal ID of this version: | #1015015/6 |
| Text MD5: | 5872145140430887fca15d14e34703b9 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-07 16:51:00 |
| Source code size: | 576 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 594 / 651 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |