Uncomplete circle

Hi guys,

Is there a way to draw an uncomplete circle without using beginShape() and curveVertex()
like this ? :

int diam = 200;

void setup(){
  size(500,500);
  translate(width/2,height/2);
  stroke(#E044A2);
  background(0);
  noFill();
  strokeWeight(50);
  
  beginShape();
  for(float a = 0;a<=TWO_PI - HALF_PI;a+=0.01){
    curveVertex(cos(a)*diam,sin(a)*diam);
  }
  endShape();

  noLoop();
}


void draw(){
}

circle

Thanks

2 Likes

Sounds like you’re looking for the arc() function. More info can be found in the reference.

4 Likes

Yes of course thanks @Kevin that was to simple ahah :grin:

Have a nice day

1 Like