static <A extends BackgroundPlus<PolygonWithColor>> A varyBackgroundPlusPolys(A s, int w, int h) { s = cloneThroughStructure(s); if (oneIn(10)) s.background = varyColor(s.background); else if (tossCoin()) replaceRandomElement(s.things, randomPolyWithColor(w, h, l(first(s.things).points))); else varyPolyWithColor(random(s.things), w, h); ret s; }
Began life as a copy of #1014953
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: | #1014975 |
Snippet name: | varyBackgroundPlusPolys |
Eternal ID of this version: | #1014975/1 |
Text MD5: | ac33b6f0daa1a0901ae8d47e7d3ac203 |
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 19:30:11 |
Source code size: | 378 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 343 / 373 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1015007 - varyBackgroundPlusRoundedBoxes |