p5((s) => {
let w = 600;
let h = 400;
let cw = 20;
let ch = 20;
let noiseScaleSpace = 0.0001
let noiseScaleTime = 0.0005
s.setup = function () {
s.createCanvas(w, h);
};
s.draw = function () {
s.clear()
for (let x = 0; x < w; x += cw) {
for (let y = 0; y < h; y += ch) {
s.translate(x, y)
s.rotate(s.noise(x * noiseScaleSpace, y * noiseScaleSpace, s.frameCount * noiseScaleTime) * 180)
s.line(5, ch / 2, cw - 5, ch / 2)
s.resetMatrix()
}
}
};
})