{
const ctx = canvas.getContext('2d')
ctx.clearRect(0, 0, canvas.width, canvas.height)
for (let i = 0; i < numberOfPoints; i++) {
let x = Math.random() * canvas.width
let y = Math.random() * canvas.height
ctx.beginPath();
ctx.arc(x, y, sizeOfPoints / 2, 0, 2 * Math.PI)
ctx.fillStyle = pointColor
ctx.fill()
ctx.closePath()
}
return canvas
}