/* frame_dots.pde Created by Justin Hsia Displays one new dot for each new frame. Total dots on screen matches frame count. Pause looping by pressing the mouse. */ int sp = 50; // spacing between dots (horizontally and vertically) void setup() { size(500,500); background(255); fill(0,255,0); stroke(0); frameRate(2); } void draw() { int x = frameCount % 10; int y = int(frameCount / 10); ellipse(sp*(x + 0.5),sp*(y + 1),12,12); } void mousePressed() { noLoop(); } void mouseReleased() { loop(); }