Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3063cae2f0
Fetching contributors…

Cannot retrieve contributors at this time

file 28 lines (23 sloc) 0.326 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
class CrawlTest extends Routine {
  int y;
  int x;
  
  void setup() {
    y=0;
    x=0;
  }
  
  void draw() {
    background(0);
  
    if (frameCount % 4 == 0) {
      x++;
    }
    if (x>width) {
      x=0;
      y++;
      
      if (y>height) {
        y=0;
      }
    }
    
    stroke(255);
    point(x,y);
  }
}
Something went wrong with that request. Please try again.