Documentation ¶
Overview ¶
Package mapcmd implements a command to draw a pixelation as an image map.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &command.Command{
Usage: `map [-c|--columns <value>] [--mask]
-o|--output <out-img-file> [<pix-file>...]`,
Short: "draw a map from a file with pixelated plates",
Long: `
Map reads one or more pixelated plates files and generates a PNG image with
the plates drawn using a plate carrée (equirectangular) projection.
The --output or -o flag is required and specifies the name of the output image
file. In the generated image, all pixels associated with a plate will have the
same color, randomly selected. If the --mask flag is provided, the output will
be a mask-like image. By default, the image will have a width of 3600 pixels.
Use the --column or -c flag to specify a different number of image columns.
One or more input files can be given as arguments. If no files are given, the
input will be read from the standard input.
`,
SetFlags: setFlags,
Run: run,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.