generator

package
v0.0.0-...-47e49a5 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(cfg Config) error

Types

type Config

type Config struct {
	Markers     []*Marker
	Destination io.Writer
	// Default 1000x1000
	MapSize          int
	ContinentGrid    bool
	ContinentNumbers bool
	// BackgroundColor in HEX format
	BackgroundColor string
	// GridLineColor in HEX format
	GridLineColor string
	// ContinentNumberColor in HEX format
	ContinentNumberColor string
	Scale                float32
	CenterX              int
	CenterY              int
	PNG                  bool
	// Quality of image (1-100), only for JPEG format
	Quality int
}

type Marker

type Marker struct {
	Larger   bool
	Villages []*twmodel.Village `json:"villages" gqlgen:"villages" xml:"villages"`
	// Color in HEX format
	Color string `json:"color" gqlgen:"color" xml:"color"`
}

Jump to

Keyboard shortcuts

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