Added two more examples: SmoothChange and Primitive

This commit is contained in:
codeanticode
2011-12-12 05:03:51 +00:00
parent a67779598d
commit e051c1325c
2 changed files with 50 additions and 0 deletions
@@ -0,0 +1,26 @@
PImage img;
int level = 2;
public void setup() {
size(200, 200, P3D);
frameRate(90);
smooth(level);
img = loadImage("milan_rubbish.jpg");
}
public void draw () {
background(0);
tint(255, 150);
image(img, 0, 0, width, height);
fill(255);
text("current smooth: " + level, mouseX, mouseY);
}
void keyPressed() {
level = 4;
smooth(level);
}