Infinite loop...
in
Programming Questions
•
3 years ago
Hey there people.
Was wondering if you could help....
All I'm trying to do is have multiple rings emanating from the centre at a fixed rate.
Basically so it looks like a drop in a puddle.
I have made the ring reset to zero... should I be doing this or just infinitely triggering a single expanding ring in sequence?
Your help would be very useful.
Thanks in advance, from AJ... code below
int a = 0;
void setup()
{
size(200, 200);
stroke(255);
frameRate(50);
}
void draw(){
background(0);
smooth();
strokeWeight(5);
fill(0);
a = a + 1;
ellipse(100, 100, a, a);
if(a > width)
a = 0;
}
1