1 | please include function randomLineWithColor. |
2 | |
3 | static void varyLineWithColor(LineWithColor l, int w, int h) { |
4 | int i = random(randomLineWithColor_minLineWidth < randomLineWithColor_maxLineWidth ? 4 : 3); |
5 | if (i == 0) l.a = varyPoint(l.a, w, h); |
6 | else if (i == 1) l.b = varyPoint(l.b, w, h); |
7 | else if (i == 2) l.color = varyColor(l.color); |
8 | else { |
9 | l.width = varyIntInRange(l.width, |
10 | randomLineWithColor_minLineWidth, randomLineWithColor_maxLineWidth); |
11 | limitLineThickness(l, randomLineWithColor_maxThickness, randomLineWithColor_minLineWidth); |
12 | } |
13 | } |
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: | 365 / 426 |
Version history: | 5 change(s) |
Referenced in: | [show references] |