Homework 1.2 part 2 2/4/13

//Kanghyun huh

//calli higgins

//assinment 1.2 part 2

//due Feb 4th, 2013

//Enviroment

size(400,400); //set screen size 400×400 pixels.

//rectangles

noStroke(); //remove outline of rectangles

//red

fill(255,0,0); //makes the square red

rect(0, 0, 200, 200); //draw a square on the upper left corner

//gray

fill(128); //makes the square gray

rect(200, 200, 200, 200); //draw a square on the upper right corner

//green

fill(0,255,0); //makes the square green

rect(200,0,200,200);//draw a square on the bottom left corner

//blue

fill(0,0,255); //makes the square blue

rect(0,200,200,200);//draw a square on the bottom right corner

//ellipse

fill(255,255,255,200);//makes the circle white and transparent

strokeWeight(3);//makes border thick

stroke(0);//makes the black border around the circle

ellipse(200, 200, 100, 100);//draw a ellipse in the center

 

This entry was posted in Uncategorized. Bookmark the permalink.

One Response to Homework 1.2 part 2 2/4/13

  1. size(400, 400);// size of the entire window
    noStroke();// no outline
    fill(255, 0, 0);// red color
    rect(0, 0, 200, 200);// first red rectangle
    fill(0, 255, 0);// green color
    rect(200, 0, 200, 200);// second green rectangle
    fill(0, 0, 225);// blue color
    rect(0, 200, 200, 200);// third blue rectangle
    fill(125, 125, 125);// gray color
    rect(200, 200, 200, 200);// fourth gray rectangle
    fill(255, 255, 255, 200);// transparent circle
    strokeWeight(4);// thickness of outline
    stroke(0);// black outline of circle
    ellipse( 200, 200, 200, 200);// actual circle

Leave a Reply

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