Skip to content
Newer
Older
100644 19 lines (14 sloc) 305 Bytes
a6b64d8 @potatono Refactored everything into separate classes.
potatono authored May 15, 2012
1 class OppositeLines extends Routine {
2 void draw() {
3 background(0);
4 stroke(255);
5
6 long frame = frameCount - modeFrameStart;
7 int x = int(frame % 5);
8
9 for (int i = x-5; i<WIDTH; i+=5) {
10 line(i+8, 0, i, 8);
11 }
12
13 if (frame > FRAMERATE*5) {
14 newMode();
15 }
16 }
17
18 }
Something went wrong with that request. Please try again.