Project 05 – Wallpaper

sketch
// WALLPAPER
// TERESA LOURIE
// PROJECT 05 A
// SECTION D


var s = 120;
//var column = 3;

function setup() {
    createCanvas(500, 500);
    background(150, 175, 255);
    
}

function draw() {
	//var d = s*sqrt(3)/2;  //column offset
	for (var x = 0; x <= 600; x += s) {
		push();
		translate(-120, 0);
		
		
		for (var y = -50; y<=600; y += s){ 
			push();
			translate(x, y);
			
			push();  //background pattern
			translate(30, 30);
			stroke(175, 200, 255);
			strokeWeight(20);
			line(180, 0, 180, 180); //vertical
			line(0, 0, 180, 0); //horizontal
			push();
			translate(-60, 60);
			line(180, 0, 180, 180);
			line(180, 0, 0, 0);
			pop();
			pop();


			strokeWeight(20);
			stroke(225,185,110); //mushroom A stem
			line(0, 0, 0, random(15, 25));
			

			fill(190,125,50) //mushroom A cap
			noStroke();
			arc(0, 0, random(45, 70), random(40, 60), PI, 0, CHORD);
			pop();
			

			push();
			translate(x+60, y+60);

			strokeWeight(random(15,25));
			stroke(255); //mushroom B stem
			line(0, 0, 0, random(15, 25));
			
			fill(190, 0, 0);
			noStroke();
			arc(0, 0, random(45, 70), random(40, 60), PI, 0, CHORD); //mushroom B cap

			pop();
			



		}
		pop();

	}
	noLoop();
	
	

}

Leave a Reply