Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 17 lines (13 sloc) 0.329 kB
a6b64d8 @potatono Refactored everything into separate classes.
potatono authored
1 class RGBRoutine extends Routine {
2 int color_angle = 0;
3
4 void draw() {
5 background(0);
6
7 for (int row = 0; row < height; row++) {
8 for (int col = 0; col < width; col++) {
9 stroke(0,2*((row+col+color_angle)%128),0);
10 point(col,row);
11 }
12 }
13
14 color_angle = (color_angle+1)%255;
15 }
16 }
Something went wrong with that request. Please try again.