Blooming Spirals(W5)


I want to make a random spiral movement that looks like the painting.
This code has below functions

1. Spirals are randomly generate
2. Color changed by mouse coordinates
3. Color changed by the relation between mouse coordinates and spirals
4. Redraw when the mouse is pressed

First, I made one spiral and added variables. After that made an array of object and kept testing the form of spirals. And also more variables.

First spiral object
Array of object
Test 1
Test 2
Test 3



Sketch 1
Sketch 2
Sketch 3
Sketch 4



















1. How to stop the draw the end of the spiral?
I tried to use noLoop and I thought if I could measure the minimum “r”,
it’s may possible but couldn’t find out.

2. How to make an array in the class?