FSOSS 2010/processing.js/randomShapes

From CDOT Wiki
Revision as of 20:52, 27 October 2010 by Asalga (talk | contribs) (Created page with 'FSOSS 2010 Andor Salga Exercise using random, text and shapes: Create a font reference: void setup(){ size(500, 500); create the font: } void draw(){ …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

/*

 FSOSS 2010
 Andor Salga
 Exercise using random, text and shapes
  • /

/* Create a font reference */

void setup(){

 size(500, 500);
 /* create the font */

}

void draw(){

 /* generate random red, green and blue values */
 /* set the fill color */
 /* generate random x, y values within the canvas */ 
 /* if the mouse is down, draw an circle */
 /* else, draw a rectangle */

 /* draw white text with the x value*/

}