Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 281 Bytes
class Flash extends Routine {
void draw() {
long frame = frameCount - modeFrameStart;
if (frame % (2) < 1) {
background(255,0,0);
}
else {
background(0,255,255);
}
if (frame > FRAMERATE*TYPICAL_MODE_TIME) {
newMode();
}
}
}