Difference between revisions of "FSOSS 2010/processing.js/transforms ex"

From CDOT Wiki
Jump to: navigation, search
(Created page with '<source lang="JavaScript"> FSOSS 2010 Andor Salga: void setup(){ size(250, 250); } void draw(){ background(100); fill(33,33,199); // body and head rect(50…')
 
(No difference)

Latest revision as of 07:28, 28 October 2010

/*
  FSOSS 2010
  Andor Salga
*/
void setup(){
  size(250, 250);
}

void draw(){
  background(100);
 
  fill(33,33,199);
 
  // body and head
  rect(50, 50, 40, 60);
  rect(60, 25, 20, 20);
 
  // legs
  rect(50, 115, 10, 50);
  rect(80, 115, 10, 50);

  // arms
  // Let's get those arms spinning!
  rect(35, 50, 10, 40);
  rect(95, 50, 10, 40);  
}

Answer