mapcmd

package
v0.0.0-...-26dca7e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: BSD-2-Clause Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL