xxxxxxxxxx
20
// Scales perlin noise to the height of canvas
let xoff = 0;
let totalXoffDistance = 20;
let inc;
let mult = 20;
function setup() {
noiseSeed(42);
createCanvas(300, random(600));
inc = (totalXoffDistance / height);
}
function draw() {
strokeWeight(4);
for (let i = 0; i < height; i++){
point(width/2 + noise(xoff)*mult, i);
xoff+=inc;
}
noLoop();
}