var arr,
sc = 50,
h = 4;
function setup(){
frameRate(2);
}
function draw(){
arr = perlin(4,10);
createCanvas(windowWidth, windowHeight);
background(0);
//sc = 100-(mouseX/width)*90;
sc = 25;
for (let i = 0; i <= width; i += sc){
stroke(255);
strokeWeight(1);
line(i,0,i,height);
}
for (let i = 0; i <= height; i += sc){
line(0,i,width,i);
}
plotArr();
}
function plotArr(){
for (i = 0; i <= arr.length-1; i++){
stroke(0,255,0);
strokeWeight(3);