xxxxxxxxxx
15
function setup() {
createCanvas(400, 400);
background(200)
let spread = width
let a = 0.0;
let inc = TWO_PI / spread;
for (let i = 0; i <= spread; i++) {
let lineHeight = (1-sin(a+PI/2)) * 20
console.log(lineHeight)
line(i, height-lineHeight, i, height);
a = a + inc;
}
}