points = {
const ctx = DOM.context2d(width, height, 1)
const projection = d3.geoNaturalEarth1().fitWidth(width, {type: "Sphere"})
const path = d3.geoPath(projection, ctx)
const land = topojson.merge(world, world.objects.countries.geometries.filter(d => d.id !== "010"))
ctx.beginPath()
path(land)
let points = []
for (let y = size / 2; y <= height + size / 2; y += size) {
for (let x = size / 2; x <= width + size / 2; x += size) {
if (ctx.isPointInPath(x, y)) {
points.push({x: x, y: y, row: y})
}
}
}
return points
}