static void varyBoxWithColor(BoxWithColor l, int w, int h) { int i = random(3); if (i == 0) l.a = varyPoint(l.a, w, h); else if (i == 1) l.b = varyPoint(l.b, w, h); else l.color = varyColor(l.color); }
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: | #1014954 |
Snippet name: | varyBoxWithColor |
Eternal ID of this version: | #1014954/2 |
Text MD5: | 673e3f1009708c66846d58229211db5c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-06 18:07:53 |
Source code size: | 214 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 371 / 404 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1014976 - varyPolyWithColor #1014988 - varyCircleWithColor #1015000 - varyRoundedBoxWithColor #1015015 - varyLineWithColor |