mdambruc-Project-04

sketch

//Mairead Dambruch
//mdambruc@andrew.cmu.edu
//section C
//Project-04

function setup() {
    createCanvas(640, 480);
    background(180, 218, 214);
}
function draw() {
    var offset = 100; //moves translated lines
    var spacing = 5;
    var weirdnumber = 4.5;
    for (var i = 0; i < width; i += 3){

    stroke(0);
    line(i, 0, width - offset*3, i + spacing);//black curve top left

    stroke(255);
    line(0, height - offset*2, i, 0);//white line - not a curve just a fun shape

    stroke(255);
    line(350, width + i, i + offset*3, 0);// white curve on right side

    stroke(0);
    line(0, width - i, i + offset, 0);//black curve in upper left hand corner

    //repeated black curves

    push();
    translate(offset, 0);
    stroke(0);
    line(i, 0, width - offset*3, i + spacing);
    pop();

    push();
    translate(-offset, 0);
    stroke(0);
    line(i, 0, width - offset*3, i + spacing);
    pop();

    push();
    translate(-offset * 2, 0);
    stroke(0);
    line(i, 0, width - offset*3, i + spacing);
    pop();

    push();
    translate(offset*2, 0);
    stroke(0);
    line(i, 0, width - offset*3, i + spacing);
    pop();

    //

    stroke(255, 75, 46);
    line(0, i, i+ spacing, height);//Original orange Curve bottom left

    //repeated orange curves
    push();
    translate((offset * (offset/2)), 0);
    stroke(255, 75, 46);
    line(0, i, i+ spacing, height);
    pop();

    push();
    translate(offset*3, 0);
    stroke(255, 75, 46);
    line(0, i, i+ spacing, height);
    pop();

    push();
    translate((offset* weirdnumber), 0);
    stroke(255, 75, 46);
    line(0, i, i+ spacing, height);
    pop();

    push();
    translate(width, 0);
    stroke(255, 75, 46);
    line(0, i, i+ spacing, height);
    pop();
  }

}

In this assignment I mostly focused on experimenting with the mixing of colors in the curves. I enjoyed changing the spacing between lines to create interesting visual effects.

Leave a Reply