Open main menu

CDOT Wiki β

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

(Created page with 'category: FSOSS 2010 PJS Examples <source lang="JavaScript"> FSOSS 2010: void setup(){ // Set the size of the canvas. This will overwrite the canvas // HTML attr…')
 
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
/*
 
/*
 
   FSOSS 2010
 
   FSOSS 2010
 +
  Andor Salga
 
*/
 
*/
  
Line 18: Line 19:
 
}
 
}
 
</source>
 
</source>
 +
 +
[http://studio.sketchpad.cc/sp/pad/view/zj4P0Pcuj2/latest Run me]

Latest revision as of 12:14, 26 October 2010

/*
  FSOSS 2010
  Andor Salga
*/

void setup(){

  // Set the size of the canvas. This will overwrite the canvas
  // HTML attributes
  size(100, 100);

  // Set the background color to blue
  background(33, 66, 99);

  // Draw a rectangle (x, y, width, height)
  rect(5, 20, 70, 50);
}

Run me