Open main menu

CDOT Wiki β

FSOSS 2010/processing.js/example1

  FSOSS 2010
  Example of size, background and rect
  Andor Salga
// 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
// Reference page for rectangle:
rect(5, 20, 70, 50);

Run me