Difference between revisions of "FSOSS 2010/processing.js/example1"
Line 1: | Line 1: | ||
+ | [[category:FSOSS 2010 PJS Examples]] | ||
+ | |||
<source lang="javascript"> | <source lang="javascript"> | ||
/* | /* |
Revision as of 16:48, 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);