Jenny Hu — Project 05 Wallpaper

sketch

//Jenny Hu
//Section E
//jjh1@andrew.cmu.edu
//Project 05

var x = 0;
var y = 0;
var tileWidth = 42;
var ellipseW = 10;
var arcW = 2;
var width = 40;
var height = 40;
var ox = 20;

function setup() {
    createCanvas(480, 480);
    background(0);
    angleMode(DEGREES);

    for (x = 0; x <12; x++){
        var evenOrOdd = x%2;

        if(evenOrOdd == 0){
            height = width + (sqrt(3)/2);
            //ellipse rows
            for (y = 0; y<12; y++){ 
                var placex = y*tileWidth;
                var placey = x*tileWidth;
                noFill();
                stroke(255);
                strokeWeight(1.2);

                for (var e = 0; e<12; e++){
                    var scale = 5
                    ellipse(placex+tileWidth/2,placey+tileWidth/2, 
                        ellipseW+(e*scale), ellipseW+(e*scale));

                }
        }
    }
        
        //lace rows
        if(evenOrOdd != 0){ 
            height = width + (sqrt(3)/2);
            for (y = 0; y<12; y++){
                var placex = y*tileWidth + (ox/2);
                var placey = x*tileWidth;
                var scale = 4;
                noFill();
                stroke(255);
                strokeWeight(1.5);

                //upward lace arc
                for (var e = 0; e<10; e++){
                    arc(placex + tileWidth/2, placey + tileWidth/2, 
                        arcW+e*scale, arcW+e*scale, 180, 0, CHORD);
                    arc(placex, placey + tileWidth/2, 
                        arcW+e*scale, arcW+e*scale, 180, 0, CHORD);
                }

                //downward lace arcs
                for (var s = 0; s<5; s++){
                    arc(placex + tileWidth/2, placey + tileWidth/2, 
                        arcW+s*scale, arcW+s*scale, 0, 180, CHORD);
                    arc(placex, placey + tileWidth/2, 
                        arcW+s*scale, arcW+s*scale, 0, 180, CHORD);
                }
        }

        }
    }
    noLoop();
}

I wanted to replicate and play with a sense of three-dimensional texture by overlaying moire patterns once again. Building off of one of the assignments, I thought it would be nice to replicate fabric, and drew inspiration from lace dresses (see below). For the sake of contrast, the background is black, but I’d love to see this extended into a variety of more complex patterns in the future.

This dress is from river island. I liked the simple rows that present layers of white fabric on top of one another.

 

 

Leave a Reply