mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Getting keyword color up and running
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user