xxxxxxxxxx
/******************************
Bootcamp Code HW 1
Chris Henrick
7/29/13
******************************/
// set document size and background
size(400, 400);
background(240);
/******************************
BOXES
******************************/
// set stroke color to background
strokeWeight(0);
stroke(240);
// big red square
fill(255, 0, 0);
rect(40, 40, 205, 205);
// yellow box upper right
fill(255, 255, 0, 150);
rect(245, 0, 140, 145);
// yellow box lower left
fill(255, 255, 0, 150);
rect(0, 295, 50, 105);
//black boxes
fill(0);
rect(40, 245, 115, 110);
rect(145, 345, 110, 30);
// blue box
fill(0, 0, 255, 150);
rect(245, 295, 130, 80);
// small red box lower left corner
fill(255, 0, 0, 150);
rect(375, 295, 25, 105);
/******************************
BLACK RECTANGLES
******************************/
// set fill to black
fill(0);
// set stroke to black
stroke(0);
// first horizontal rectangle
rect(5, 40, 380, 10);
// second horz rects
rect(5, 145, 35, 10);
rect(245, 145, 140, 10);
// third horz rect
rect(40, 245, 345, 10);
// fourth horz rect
rect(3, 295, 397, 10);
// fifth horz rect
rect(145, 365, 240, 10);
// first vertical rect
rect(40, 40, 10, 345);
// second vert rect
rect(95, 5, 10, 40);
// third vert rect
rect (145, 295, 10, 95);
// fourth vert rect
rect(245, 2, 10, 373);
// fifth vert rect
rect(310, 145, 10, 110);
// sixth vert rect
rect(375, 8, 10, 387);