// Joanne Chui
//jchui1@andrew.cmu.edu
// Assignment-04-A
// Section C
function setup(){
createCanvas(400, 300);
background("black");
}
function draw(){
for(let i = 0; i < 25; i++){
ay = i * 6;
bx = 200 - (i * 8);
cy = i * 12;
dx = i * 16;
stroke(220, 255, 150);
strokeWeight(.1);
//"quad1"
line(200, ay, bx, 150);
//"quad2"
line(200, ay, 200 + bx, 0);
//"quad3"
line(400, cy, 400 - bx, 0);
line(200, 150 + ay, 200 + bx, 0);
line(200, 150 + ay, 400 - bx, 300);
//"quad4"
line(0, 150 + ay, bx, 150);
line(dx, 300, 400, 300 - cy)
line(200, ay, bx, 300);
}
}
I created this image based on the idea of fabric, and trying to make the lines appear as a continuous surface. This is why there aren’t any endpoints floating in the canvas, and everything is connected.