PShape bug or Glitch art? You decide!

edited November 2014 in General Discussion

Most likely bad practice, but I get some pretty funky results when adding the same shape repeatedly to a group:

PShape group, item1, item2;
void setup () {
  size(300, 300, P2D);
  group = createShape(GROUP);
  item1 = createShape(ELLIPSE, 50, 50, 200, 200);
  item2 = createShape(ELLIPSE, 100, 100, 100, 100);
  group.addChild(item1);
  group.addChild(item2);
}

void draw() {
  group.addChild(item2);
  shape(group);
}

produces crazy changing artifacts: Screen Shot 2014-11-20 at 10.02.45 AM Screen Shot 2014-11-20 at 10.02.50 AM Screen Shot 2014-11-20 at 10.02.55 AM Screen Shot 2014-11-20 at 10.02.59 AM Screen Shot 2014-11-20 at 10.03.08 AM Screen Shot 2014-11-20 at 10.03.15 AM

FUN!

Comments

Sign In or Register to comment.