Image Processing examples for 2.0

This commit is contained in:
Casey Reas
2011-09-16 06:08:57 +00:00
parent 472fd13b2f
commit dabdffc1dd
7 changed files with 36 additions and 32 deletions

View File

@@ -9,18 +9,18 @@
// @pjs preload must be used to preload media if the program is
// running with Processing.js
/* @pjs preload="moon.jpg"; */
/* @pjs preload="sea.jpg"; */
PImage img;
int direction = 1;
float signal;
void setup() {
size(200, 200);
size(640, 360);
noFill();
stroke(255);
frameRate(30);
img = loadImage("ystone08.jpg");
img = loadImage("sea.jpg");
}
void draw() {