Open main menu

CDOT Wiki β

Changes

FSOSS 2010/processing.js/example2

347 bytes added, 16:52, 4 October 2010
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…'
[[category: FSOSS 2010 PJS Examples]]
<source lang="JavaScript">
/*
FSOSS 2010
*/

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);
}
</source>
1
edit