New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in arc with createShape #3018

Closed
clankill3r opened this Issue Dec 27, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@clankill3r

clankill3r commented Dec 27, 2014

With createShape, the OPEN, CHORD and PIE work. But they are also used to set the ellipseMode of the shape.

OPEN == CORNERS == 1
CHORD == RADIUS == 2

void setup() {
  size(300, 300, P2D);

  frameRate(1);
}

void draw() {
  background(255);


  if (frameCount % 6 == 0) {
    println("1");
    arc(50, 50, 80, 80, 0, PI+QUARTER_PI, OPEN);
  }
  if (frameCount % 6 == 1) {
    println("2");
    arc(50, 50, 80, 80, 0, PI+QUARTER_PI, CHORD);
  }
  if (frameCount % 6 == 2) {
    println("3");
    arc(50, 50, 80, 80, 0, PI+QUARTER_PI, PIE);
  }
  if (frameCount % 6 == 3) {
    println("4");
     PShape s = createShape(ARC, 50, 50, 80, 80, 0, PI+QUARTER_PI, OPEN);
     shape(s);
  }
  if (frameCount % 6 == 4) {
    println("5");
     PShape s = createShape(ARC, 50, 50, 80, 80, 0, PI+QUARTER_PI, CHORD);
     shape(s);
  }
  if (frameCount % 6 == 5) {
    println("6");
     PShape s = createShape(ARC, 50, 50, 80, 80, 0, PI+QUARTER_PI, PIE);
     shape(s);
  }


}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment