static <A extends BackgroundPlus<RoundedBoxWithColor>> A varyBackgroundPlusRoundedBoxes(A s, int w, int h) { s = cloneThroughStructure(s); if (oneIn(10)) s.background = varyColor(s.background); else if (tossCoin()) replaceRandomElement(s.things, randomRoundedBoxWithColor(w, h)); else varyRoundedBoxWithColor(random(s.things), w, h); ret s; }
Began life as a copy of #1014975
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: | #1015007 |
| Snippet name: | varyBackgroundPlusRoundedBoxes |
| Eternal ID of this version: | #1015007/6 |
| Text MD5: | 2d73ee5dff3290c5e6b63c0e840fd516 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-06 23:48:01 |
| Source code size: | 373 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 614 / 687 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |