//Sean Meng
//Section C
//hmeng@andrew.cmu.edu
//Project-03-String-Art
function setup() {
createCanvas(400, 300);
}
function draw() {
background(0);
for(var i = 0; i <= 400; i += 10){
//the darkest blue lines
stroke(0, 0, 255);
line(i, 0, 400, i);
//second layer of blue lines with lighter color
stroke(100, 100, 255);
line(i, 50, 400, i);
//third layer of blue lines with ligher color
stroke(150, 150, 255);
line(i, 100, 400, i);
//the lightest blue lines
stroke(200, 200, 255);
line(i, 150, 400, i);
//the darkest red lines
stroke(255, 0, 0);
line(i, 300, 0, i);
//second layer of red lines
stroke(255, 100, 100);
line(50, i, i, 300);
//third layer of red lines
stroke(255, 150, 150);
line(100, i, i, 300);
//the darkest blue lines
stroke(255, 200, 200);
line(150, i, i, 300);
}
}
In this project, I intended to create a wavy graphic using string art form. I was also experimenting with visual readability and hierarchy by adding different tones of color and complementary colors to the graphics.