Problems with Arc
              in 
             Programming Questions 
              •  
              1 year ago    
            
 
           
             Hi, 
            
I have a little problem with Arcs and For Function.
I want to "control' the distance between arc AND the angle with For functions but it doesn't work well.
Here the code.
            
            
            
Here the result that i imagine...
            
            
            
            
 
           
 
            
           I have a little problem with Arcs and For Function.
I want to "control' the distance between arc AND the angle with For functions but it doesn't work well.
Here the code.
void setup() {
background(255);
size(500, 500);
noFill();
smooth();
strokeWeight(3);
strokeCap(SQUARE);
stroke(200, 50, 20);
for ( int i =30; i< 360;i=i+15) {//control distance
for ( int y =30; y< 360;y=y+15) {// control angle
arc(250, 250, i, i, 0, radians(y));
}
}
}
Here the result that i imagine...
Thanks for reading.void setup() {
background(255);
size(500, 500);
noFill();
smooth();
strokeWeight(3);
strokeCap(SQUARE);
stroke(200, 50, 20);
arc(250, 250, 30, 30, 0, radians(30));
arc(250, 250, 60, 60, 0, radians(60));
arc(250, 250, 90, 90, 0, radians(90));
arc(250, 250, 120, 120, 0, radians(120));
arc(250, 250, 150, 150, 0, radians(150));
arc(250, 250, 180, 180, 0, radians(180));
arc(250, 250, 210, 210, 0, radians(210));
arc(250, 250, 240, 240, 0, radians(240));
arc(250, 250, 270, 270, 0, radians(270));
arc(250, 250, 300, 300, 0, radians(300));
arc(250, 250, 330, 330, 0, radians(330));
arc(250, 250, 360, 360, 0, radians(360));
}
 
              
              1  
            
 
            