static void varyCircleWithColor(CircleWithColor l, int w, int h) { int i = random(3); if (i == 0) l.center = varyPoint(l.center, w, h); else if (i == 1) l.r = max(1, varyInt(l.r)); else l.color = varyColor(l.color); }
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: | #1014988 |
Snippet name: | varyCircleWithColor |
Eternal ID of this version: | #1014988/1 |
Text MD5: | 41616616b129fe9019785be6196c8628 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-06 20:12:50 |
Source code size: | 230 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 380 / 416 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |