points = [[0, 0], [w, 0], [0, h], [w, h], ...new PoissonDiskSampling({
shape: [w, h],
minDistance: 2,
maxDistance: 10,
distanceFunction: p => {
const x = p[0] | 0
const y = p[1] | 0
const index = x + y * imageData.width
if(index < 0 || index >= imageData.pixels.length) return 1
return imageData.pixels[index][2]
},
tries: 10
}).fill().map(pt => pt.map(coord => coord | 0))]