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);
}
}
@@ -1,7 +1,11 @@
PShader monjori;
/**
* Monjori
*/
PShader monjori;
void setup() {
size(512, 384, P2D);
size(640, 360, P2D);
noStroke();
monjori = loadShader("monjori.glsl");
@@ -15,4 +19,4 @@ void draw() {
shader(monjori);
rect(0, 0, width, height);
}
@@ -1,7 +1,11 @@
/**
* Nebula
*/
PShader nebula;
void setup() {
size(320, 240, P3D);
size(640, 360, P2D);
noStroke();
nebula = loadShader("nebula.glsl");
@@ -14,4 +18,4 @@ void draw() {
fill(0);
rect(0, 0, width, height);
}