points = {
const points = [];
for (let i = 0; i < numPoints; i++) {
const x = Math.floor(Math.random() * width);
const y = Math.floor(Math.random() * height);
const h = hilbert(x, y);
points.push([x, y, h]);
}
return points.sort((a, b) => a[2] - b[2]);
}