hide / show Sprouting Leaves
v0.3.2b-with-rejects
Warning, this is a bit heavy on the device memory ¯\_(ツ)_/¯
Manual
A refresh will do the trick
Tip: view the console for some intel
v0.3.2 > 0.3.2b-with-rejects
- Only difference is that it also shows all the rejects
What does the script do?
- Start with 8 base coordinates
-
Calculate the 5 other coordinates, with some randomness to make it more organic. And while calculating:
-
Check if a new coordinate occurs in the not to use coordinates
Set()
¹ - BECAUSE OF TESTING PURPOSE: If it occurs then stil use it but painted more lightly, so one can see where al the rejects are
-
Check if a new coordinate occurs in the not to use coordinates
-
Determine a (bit smaller) square of the object and put all coordinates of that square in the
Set()
¹ - Draw the 4 line and 7 circles
- Delete the used coordinates couple from the array
- Put the 2 new coordinates couples in the array for later use
- Pick one unused coordinates couple, and start again from step 2. Repeats 1500 times. And if it's done:
- Add sprouting leaves on all unused coordinates
¹ A Set()
is used because it only store unique values by default
Other Versions
- version 0.4.1 Nov 29 2021
- version 0.4.0 Nov 16 2021
- version 0.3.2b-with-rejects Nov 11 2021
- version 0.3.2 Nov 11 2021
- version 0.3.0 Nov 11 2021
- version 0.2.0 Nov 10 2021
- version 0.1.1 Nov 10 2021
- version 0.1.0 Nov 9 2021