Jack’s homework 1.2 part 2

//Jack Tan/Week 1.2/ 2-4-2013/ Assignment part 2

size(400,400);//make a 400×400 square
fill(255,0,0); //makes red square
noStroke(); //no black outline
rect(0,0, 200, 200); //make 1st square at upper left corner
fill(0,255,0); //make green square
noStroke(); //no black outline
rect(200,0, 200, 200); //make 2nd square at upper right corner

fill(0,0,255); //make blue square
noStroke(); //Gets rid of the black outline
rect(0,200, 200, 200); //make 3rd square at lower left corner

fill(116,116,116); //make gray square
noStroke(); //Gets rid of the black outline
rect(200,200, 200, 200); //make 4th square at lower right corner

fill(255,255,255,200); //make white circle. Fourth value makes the circle transparent
strokeWeight(3); //makes the black border thicker
stroke(0); //the border around the circle
ellipse(width/2, height/2, 100, 100); //make ellipse

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *