Open main menu

CDOT Wiki β

FSOSS 2010/processing.js/example9

Revision as of 11:37, 26 October 2010 by Asalga (talk | contribs) (Created page with '<source lange="JavaScript> FSOSS 2010 Andor Salga keyPressed, keyReleased, keyCode: void setup(){ size(250, 250); } void draw(){ background(200); } : void ke…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/*
  FSOSS 2010
  Andor Salga
  keyPressed, keyReleased, keyCode
*/
void setup(){
  size(250, 250);
}

void draw(){
  background(200);
}

/*
*/
void keyPressed(){
  println("Key Pressed: " + keyCode);
}

/*
*/
void keyReleased(){
  println("Key Released: " + keyCode);
}