moving the OpenGL examples to the core

This commit is contained in:
benfry
2012-07-20 20:24:58 +00:00
parent b30328bb66
commit 40ecd562e3
133 changed files with 0 additions and 0 deletions
@@ -0,0 +1,19 @@
void setup() {
size(400, 400, P3D);
smooth(2);
}
void draw() {
background(255, 0, 0);
ellipse(mouseX, mouseY, 100, 100);
}
void keyPressed() {
if (key == '1') smooth(1);
else if (key == '2') smooth(2);
else if (key == '3') smooth(4);
else if (key == '4') smooth(8);
else if (key == '5') smooth(16);
else if (key == '6') smooth(32);
}