/* 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); // make text much larger textAlign(CENTER); // text now centered around specified x position fill(0); // black text background(255); // white background } // although we do nothing here, still needs to be present void draw() { } // runs each time a key is pressed void keyPressed() { background(255); // cover up past frames text(key,60,80); // display key on drawing canvas println("key pressed!"); // print notice to console as well }