createShape(ARC, ...) issue

oatoat
edited December 2013 in Programming Questions

I don't understand why the arc is not located at the middle of the canvas. I must have missed sth here ...

Screen Shot 2013-12-08 at 11.35.31 pm

PShape arc1, arc2, line1, line2;

void setup(){
  size(200,200, P3D);
  arc1 = createShape(ARC, 100,100, 100,100, 0,PI/2);

}
void draw(){
  arc1.noFill();
  shape(arc1);
}

Answers

Sign In or Register to comment.