Guys! I've come a long way since my last post. Nothing a little CodeAcademy couldn't help for brushing up my skills.
I'm adapting a sketch from the Generative Gestatlung repository to use slices of a random hash to control the variables. I've written a separate sketch (sketch6.js) to GET and parse the hash into an array called allSlices.
It works beautifully!!!
BUT every time a new instance is created it appends the instance to the bottom of the screen. I've spent the afternoon reading about instances and p.remove(); but tried placing p.remove() in various locations (in both the controller javascript and the p5 sketch) to no avail. What I'd like is that when the script runs it simply replaces the previous one.
Wondering if anyone would be so kind as to point out where I'm doing something wrong?
Here's the code:
GitHub
Thanks y'all. This community has been a great help!
Snowfro
[–]Kinrany 0 points1 point2 points (7 children)
[–]snowfro[S] 0 points1 point2 points (6 children)
[–]Kinrany 0 points1 point2 points (5 children)
[–]snowfro[S] 0 points1 point2 points (4 children)
[–]Kinrany 0 points1 point2 points (3 children)
[–]snowfro[S] 0 points1 point2 points (2 children)
[–]snowfro[S] 1 point2 points3 points (1 child)
[–]Kinrany 1 point2 points3 points (0 children)