HW1.2

1.2 Hw part 2

size(400,400);//how big my window is
fill(255,0,0);//the color red is being used
rect(0,0,200,200);//upper left square
fill(0,255,0);//the color green is now being used
rect(200,0,200,200);//the upper right square
fill(0,0,255);//the color blue is now being used
rect(0,200,200,200);//bottom left square
fill(125);//the color grey is now being used
rect(200,200,200,200);//bottom right square
fill(255,255,255,200);//color white is now used with some transparency
stroke(0);//outlines are now black
strokeWeight(4);//outlines are thicker
ellipse(200,200,width/4,height/4);//circle in the center

1.2 Hw part 3

size(600,400);
background(255);//white
fill(0,0,255);//blue
rect(0,0,280,180);//upperleft
rect(320,220,280,180);//bottomright
fill(255,0,0);//red
rect(320,0,280,180);//upperright
rect(0,220,280,180);//bottomleft
strokeWeight(4);//outline thickness
stroke(255);//oultine color
fill(230,0,0);//car color
rect(200,300,200,50);//car body
fill(0);//black
rect(205,350,20,48);//left wheel
rect(375,350,20,48);//right wheel
fill(230,0,0);//red
quad(215,300,235,250,365,250,385,300);//car top
noStroke();//no outline
fill(44,255,250);//blue
quad(230,290,240,260,360,260,370,290);//car window
fill(246,255,0);//light’s color
ellipse(225,325,35,35);//left light
ellipse(375,325,35,35);//right light
fill(255,230,0);//yellow
triangle(280,345,290,330,300,345);//W
triangle(300,345,310,330,320,345);//C
triangle(290,330,300,315,310,330);//P

This entry was posted in Uncategorized. Bookmark the permalink.

One Response to HW1.2

  1. i have to work on this more
    size(400, 400);
    background(200, 67, 100);// background color
    fill(244, 252, 15);// yellow
    ellipse(300, 90, 100, 100);// yellow sun
    fill(0, 255, 50);//green color
    triangle(250, 295, 278, 240, 306, 295);//middle triangle
    triangle(150, 195, 178, 140, 206, 195);//upper triangle
    triangle(350, 395, 378, 340, 406, 395);//lower triangle

Leave a Reply

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