We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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:
FUN!
Comments
I love it ! Ahahah
That is really cool. If I run the code the results are not that nice. Could you make a video? I think it's some kind of bug.
I had a bug (in my code) once where I was changing the colorMode in a threat while the main threat was going on doing stuff. Unfortunately I can't reproduce it, it just throws a NullPointerException when I try it.
Here's a gif!
hmm, not animated, well here's a link to the video, i'm not sure how to embed it:
https://drive.google.com/file/d/0B4mAocvEDBv6RVMxSjRjeXVYeXM/view?usp=sharing