Processing: Expandign circle
in
Programming Questions
•
10 months ago
So I'm trying to expand a circle using a boolean function
boolean expanding = false
and then I have if (expanding){
circleSize= circleSize + 3;
circleAlpha=circleAlpha-1;
}
But the problem is I want it to EXPAND- and revert back to its original shape. So I'm trying to put this in :
void mousePressed(){
if expanding = true; expanding = false;
else expanding = false;
}
Basically, when the mouse is pressed I want the circle --> Expand, but when the mouse is pressed the second time, the expansion stops and is back to the normal circle? How would I achieve this ...This code keeps giving me errors! I'm new to this, someone help!
1