xxxxxxxxxx
28
// let ypos = 200;
// let ystep = 30;
// let xpos = 50;
// let xstep = 50;
let shake;
let z = 0;
function setup() {
createCanvas(400, 400);
//noLoop();
shake = random(-40, 40);
}
function draw() {
background(255);
fill(50);
//noStroke();
strokeWeight(2);
for (let j = 0; j < 5; j += 10) {
for (let i = 0; i < 9; i += 10) {
let shake = random(-10, 10);
line(i + shake, height / 2, width + shake, 200 + shake);
line(200 + shake, j, height/2, width + shake);
}
}
}