Difference between revisions of "FSOSS 2010/processing.js/example9"

From CDOT Wiki
Jump to: navigation, search
(Created page with '<source lange="JavaScript> FSOSS 2010 Andor Salga keyPressed, keyReleased, keyCode: void setup(){ size(250, 250); } void draw(){ background(200); } : void ke…')
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<source lange="JavaScript>
+
[[category: FSOSS 2010 PJS Examples]]
 +
<source lang="JavaScript">
 
/*
 
/*
 
   FSOSS 2010
 
   FSOSS 2010
Line 25: Line 26:
 
}
 
}
 
</source>
 
</source>
 +
[http://studio.sketchpad.cc/LZYlhtNXVp Run me]

Latest revision as of 11:41, 26 October 2010

/*
  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);
}

Run me