static <A extends BackgroundPlus<BoxWithColor>> A varyBackgroundPlusBoxes(A s, int w, int h) { s = cloneThroughStructure(s); if (oneIn(10)) s.background = varyColor(s.background); else if (tossCoin()) replaceRandomElement(s.things, randomBoxWithColor(w, h)); else varyBoxWithColor(random(s.things), w, h); ret s; }
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: | #1014953 |
Snippet name: | varyBackgroundPlusBoxes |
Eternal ID of this version: | #1014953/7 |
Text MD5: | 8c53938127d9d071100205220e862b00 |
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-07 02:03:02 |
Source code size: | 345 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 406 / 457 |
Version history: | 6 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1014975 - varyBackgroundPlusPolys #1014989 - varyBackgroundPlusCircles |