Getting keyword color up and running

This commit is contained in:
Casey Reas
2012-09-04 03:43:15 +00:00
parent 18843b6f64
commit 954ef88c79
11 changed files with 63 additions and 27 deletions
@@ -1,10 +1,13 @@
/**
* Deform
*/
PImage tex;
PShader deform;
void setup() {
size(512, 384, P2D);
size(640, 360, P2D);
textureWrap(REPEAT);
tex = loadImage("tex1.jpg");
deform = loadShader("deform.glsl");
@@ -16,4 +19,4 @@ void draw() {
deform.set("mouse", float(mouseX), float(mouseY));
shader(deform);
image(tex, 0, 0, width, height);
}
}