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

From CDOT Wiki
Jump to: navigation, search
(Created page with '<source lang="javascript"> FSOSS 2010: // Set the size of the canvas. This will overwrite the canvas // HTML attributes. This should be the first line in your sketch size…')
 
Line 2: Line 2:
 
/*
 
/*
 
   FSOSS 2010
 
   FSOSS 2010
 +
  Example 1
 
*/
 
*/
  
Line 14: Line 15:
 
rect(5, 20, 70, 50);
 
rect(5, 20, 70, 50);
 
</source>
 
</source>
 +
 +
[http://studio.sketchpad.cc/zj4P0Pcuj2 Run me]

Revision as of 17:44, 4 October 2010

/*
  FSOSS 2010
  Example 1
*/

// Set the size of the canvas. This will overwrite the canvas
// HTML attributes. This should be the first line in your sketch
size(100, 100);

// Set the background color to gray
background(200);

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

Run me