{
const height = width;
const context = DOM.context2d(width, height);
context.fillStyle = "black";
context.fillRect(0, 0, width, height);
context.beginPath()
const radius = 20;
const padding = 2;
const offset = radius;
for (let j = 0 ; j < 30 ; j++) {
for (let i = 0; i < 30; i++){
const x = i*2*radius + j%2*radius + Math.random()*radius
const y = j*2*radius + j%2*radius + Math.random()*radius
context.moveTo(x, y)
context.arc(x,y,radius-padding,0,2*Math.PI);
}
}
context.clip();
context.beginPath()
for (let j = 0 ; j < 30 ; j++) {
for (let i = 0; i < 30; i++){
const x = i*2*radius + offset + j%2*10 + Math.random()*radius
const y = j*2*radius + offset + Math.random()*radius
context.moveTo(x, y)
context.arc(x,y,radius-padding,0,2*Math.PI);
}
}
context.fillStyle = "white"
context.fill()
return context.canvas
}