my string art isn’t super complex as I didn’t really have a vision of what I wanted it to look like when I started the project, except the fact that I wanted a light color background and a non-super contrasting (color-wise) end product. My favorite part is the little crosshatching component kind of in the background, I think it turned out quite nicely and holds the piece together well in a subtle way. I definitely could get some more getting use to with for loops!
//Serina Liu
//Section C
//serinal@andrew.cmu.edu
//project-04, string art
function setup() {
createCanvas(400, 300);
background (176, 196, 222);
var x = 3;
var y = 250;
for (var i = 0; i < 400; i += 4) {
stroke(256, 256, 256);
strokeWeight(2);
line (x-3, y*i-7, 30*i, 300); //left curve
var y = x * 0.5; //every time the y value is used, it is multiplying x by 0.5
stroke (255, 255, 0,90);
strokeWeight (1);
line (x, y*i-50, 300 *i , 30); //background yellow curve
stroke (256, 256, 256);
strokeWeight (2);
line (399, 3*i, 5*i, 1); //upper right curve
strokeWeight (0.6);
line (0, y*i, 2*i, 1); //crosshatching line
strokeWeight (2);
line (1, 5*i+90, 5*i, 299); // lower left curve
line (6*i, 300, 400, height-5*i) // lower right curve
}
}