mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 13:49:18 +01:00
27 lines
389 B
Plaintext
27 lines
389 B
Plaintext
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);
|
|
}
|
|
|