when will draw a new circle rather than move ?
in
Programming Questions
•
1 month ago
I think all the graph I draw will not be erase . But the code below only show a circle expanding , if the previous circle I draw will not disappear , it should show many circles but not a expanding circle ..
- int posx = 500 ; int posy = 250 ; int radius = 50 ;
- void setup(){
- background(255,255,255);
- size(1000,500);
- }
- void draw(){
- ellipse(posx,posy,radius,radius);
- radius = radius + 10;
- }
I change the center of the circle , but the result doesn't looks like a circle is moving . It looks I draw many circle , the previous circle doesn't erase ...
- int posx = 500 ; int posy = 250 ; int radius = 50 ;
- void setup(){
- background(255,255,255);
- size(1000,500);
- }
- void draw(){
- ellipse(posx,posy,radius,radius);
- posx = posx + 10;
- posy = posy + 10;
- }
why it appear only a circle when I change the radius , why it appear many circle when I change the center of the circle?
thanks ..
1