mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 02:45:36 +01:00
19 lines
290 B
Plaintext
19 lines
290 B
Plaintext
PShader monjori;
|
|
|
|
void setup() {
|
|
size(512, 384, P2D);
|
|
noStroke();
|
|
|
|
monjori = loadShader("monjori.glsl");
|
|
monjori.set("resolution", float(width), float(height));
|
|
|
|
}
|
|
|
|
void draw() {
|
|
monjori.set("time", millis() / 1000.0);
|
|
|
|
shader(monjori);
|
|
rect(0, 0, width, height);
|
|
}
|
|
|