Current File : /home/jeshor13/11bsouth.com/FirstCodeingICM/ICM1sketch.js |
function setup() {
createCanvas (177,400)
background("grey")
}
function draw() {
fill("brown")
rect(25,50,125,300)//building
fill("yellow")
rect(35,60,20,30)//windows
rect(120,60,20,30)//Monster Window
fill("black")
rect(35,100,20,30)//windows
rect(120,100,20,30)//windows
fill("black")
rect(35,140,20,30)//windows
fill("yellow")
rect(120,140,20,30)//windows
rect(35,180,20,30)//windows
rect(120,180,20,30)//windows
fill("black")
rect(35,220,20,30)//windows
rect(120,220,20,30)//windows
fill("yellow")
rect(35,260,20,30)//windows
rect(120,260,20,30)//windows
rect(35,300,20,30)//windows
rect(120,300,20,30)//windows
fill("green")
rect(((125/2)+5),300,40,50)//doors
line(((125/2)+25),300,((125/2)+25),350)//middle of door
fill("gold")
ellipse(((125/2)+20),330,5,5)//door knob
ellipse(((125/2)+31),330,5,5)//door knob
fill("black")
arc(130.5,90,16,30,PI,0)//Monster Body
ellipse(130.5,73,7,7)
fill("red")
ellipse(129,72,3,3)
ellipse(132,72,3,3)
}