Open main menu

CDOT Wiki β

FSOSS 2010/processing.js/example2

Revision as of 11:14, 26 October 2010 by Asalga (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/*
  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