Brian Bizier Project 03

Brian Bizier Project 03

function setup(){
	createCanvas(600,600);

	noStroke();
}

function draw(){

	background("royalblue");


	fill("tan");
	rect(width-mouseX,125,250,150);

	fill("darkslategray");
	rect(300,height-mouseY,150,250);

	fill("seagreen");
	ellipse(150,475,width-mouseX,height-mouseY);

	fill("red");
	rect(mouseX+20,mouseY,10,10);

	fill("red")
	rect(mouseX-20,mouseY,10,10);

	fill("ivory");
	rect(mouseX,mouseY+20,10,10);

	fill("ivory");
	rect(mouseX,mouseY-20,10,10);

}

I’m happy that I finally figured out some of those darn mouse-related things. Stuff I want to work on for next time: Getting objects to move “independently” and incorporating randomness. 🙂

Leave a Reply