Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
moooll
moooll's Profile
1
Posts
2
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Help to make grow ellipse
[4 Replies]
03-Mar-2013 08:59 AM
Forum:
Programming Questions
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);
}
}
«Prev
Next »
Moderate user : moooll
Forum