FSOSS 2010/processing.js/transforms ex

From CDOT Wiki
Jump to: navigation, search
/*
  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