//Carly Sacco
//Section C
//csacco@andrew.cmu.edu
//Project 4
var x1 = 5;
var x2 = 9;
var y1 = 5;
function setup() {
createCanvas(400, 300);
}
function draw() {
background(0);
for (var i = x1; i < 400; i += y1){
//blue curves
stroke(95, 158, 176);
line(i + 200, 300, i * x2 + mouseX, i);
line(i + 200, 300, -i * x2 + -mouseX, i);
//green
stroke(109, 199, 111);
line(i, 0, x1 * 80, i);
//orange
stroke(214, 56, 39);
//line(i + 400, 0, -x2 * 10, i * 5);
line(i, 300, 0, i);
//purple
stroke(173, 142, 212);
line(i * x1, y1, 500, i * 10);
}
}
Once I had made the blue curves that work oppositely of each other they reminded me of wings of a bird. I then decided to make the other curves mimic the shape of a peacock’s feather and chose the colors accordingly.