boolean pause = false; void setup(){ size(200,200); frameRate(1); // "Processing -> Tools -> Create Font ..." and save "Courier-48.vlw" PFont font = loadFont("Courier-48.vlw"); textFont(font, 48); textAlign(CENTER); } void draw() { if (! pause) { fill(random(255),random(255),random(255)); text("a", width/2, height/2); } } void keyPressed() { switch (key) { case 'p': pause = !pause; break; case 'q': fill(0, 30); text("quit", width/2, height/2); exit(); break; } }