{
const ctx = DOM.context2d(width,height,1);
ctx.clearRect(0, 0, width, height);
for (let x = 0; x < width; x = x + 20) {
for (let y = 0; y < height; y = y + 25) {
let t = noise3D(x, y, 10) * Math.PI;
ctx.beginPath();
ctx.moveTo(x, y);
let [x1, y1] = [x + 2 * Math.cos(t), y + 2 * Math.sin(t)]
const param = Math.max(2,x/40 - y/30)
for (let i = 0; i < param; i++){
t = noise3D(x1, y1, 10) * Math.PI;
[x1, y1] = [x1 + 2 * Math.cos(t), y1 + 2 * Math.sin(t)]
ctx.lineTo(x1, y1);
}
ctx.stroke();
}
}
yield ctx.canvas
}