Help to make grow ellipse
in
Programming Questions
•
7 months ago
Hello everyone,
My wish is that the ellipse who appears when I click continue to grow (until 300 or more)
The result should be; when you click, an ellipse appears and start growing like the rays created by a drop of water,
I've made the part where the ellipse appears with random color and stroke, but i'm a little stuck..
Can someone please help me ?
void setup()
{
size(800,800);
background(255);
smooth();
noFill();
frameRate(15);
}
void draw()
{
if (mousePressed)
{
stroke(random(255), random(0), random(155), 60);
float strokeweight=random(55);
strokeWeight(strokeweight);
float diametre=random(250);
ellipse(mouseX,mouseY,diametre,diametre);
}
}
1