//Stefanie Suk
//15-104 D
//ssuk@andrew.cmu.edu
//Project-04: String Art
var x = 75
var y = 500
function setup() {
createCanvas(640, 480);
background(171, 186, 255);
}
function draw() {
stroke(255);
// for (var i = 10; i <= 640; i += 15)
// line(width/2, 0, i, y)
for (var i = 10; i <= 640; i += 30)
line(width - i, 0, 0, height)
for (var i = 10; i <= 640; i += 30)
line(0, height, 640, i)
stroke(150);
for (var i = 10; i <= 640; i += 15)
line(width/2, i, width/2 + i, height)
for (var i = 10; i <= 640; i += 15)
line(width/2, i, width/2 - i, height)
for (var i = 0; i <= 300; i += 10)
line(width - i, 0, 0, i)
for (var i = 0; i <= 300; i += 10)
line(i, height, width, height - i)
stroke(10);
for (var i = 10; i <= 640; i += 70)
line(0, height/2, 640, i)
for (var i = 10; i <= 640; i += 70)
line(640, height/2, 0, i)
}
For this project, I tried to incorporate different possible string arts I can create into one single piece of work. By adding straight, curved, twisted lines, I explored the varieties of lines in string art and tried to create unity with the different lines.