0
[CANVAS] repeat infinitly creting circles
here is the demo : https://code.sololearn.com/WzRcgzM411L1/?ref=app can you help me to do this idea infinitly BUT optimized ? thanks
4 Antworten
+ 7
You should create a circle object that accepts x and y coordinates , radius and color.
You also need an array where you add new circles.
Now, using RequestAnimationFrame or setInterval, check if the radius of the last circle in the array reaches your desired max radius. If it does, push another circle in the array.
+ 3
x)
+ 1
Hi
+ 1
the animated name changer is really cool