1 | static void varyCircleWithColor(CircleWithColor l, int w, int h) { |
2 | int i = random(3); |
3 | if (i == 0) l.center = varyPoint(l.center, w, h); |
4 | else if (i == 1) l.r = max(1, varyInt(l.r)); |
5 | else l.color = varyColor(l.color); |
6 | } |
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: | 381 / 418 |
Referenced in: | [show references] |