I'm trying to build a real world map in Minecraft and want a pixel-perfect raster image I can copy pixel for block.
How can I modify
CountryData["World", {"Shape", "Robinson"}]
which gives
such that:
- Each country is its own separate color (random colors are fine).
- The water color is distinct from the background.
- There are no black border lines (but the borders are still clear from the color difference in countries).
- There is no anti-aliasing or color blending between regions of different colors, be they countries, water, or the background.
- I can scale the map to the exact width (or height) in pixels I want.
Sorry if this is asking a bit much. Mathematica is completely new to me and I wasn't getting anywhere fumbling around with CountryData
and GeoGraphics
and WorldPlot
for an hour.
Graphics[Riffle[CountryData["World", {"SchematicPolygon", "Robinson"}] /. Polygon[{p__?MatrixQ}] :> Map[Polygon, {p}], Unevaluated[RandomColor[]], {1, -2, 2}], Background -> ColorData["Legacy", "Azure"]]
suit your needs? $\endgroup$"FullPolygon"
instead of"SchematicPolygon"
? FWIW: these are all generating vector graphics, which you can easily resize before saving as an image file. $\endgroup$