/* display_letters.pde Edited by Justin Hsia (orig. Susan Evans) Displays the last key pressed on the drawing canvas. */ void setup() { size(120,120); textSize(64); textAlign(CENTER); fill(0); background(255); } // although we do nothing here, still needs to be present void draw() { } // runs each time a key is pressed void keyPressed() { background(255); text(key,60,80); println("key pressed!"); }