spots

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputPictureConfig

type InputPictureConfig struct {
	Offset     image.Point   `json:"offset"`
	TileWidth  int           `json:"tileWidth"`
	TileHeight int           `json:"tileHeight"`
	TileSpots  []image.Point `json:"tileSpots"`
	Height     int           `json:"height"`
	Width      int           `json:"width"`
}

func (*InputPictureConfig) FromFile

func (ipc *InputPictureConfig) FromFile(path string) error

func (*InputPictureConfig) FromReader

func (ipc *InputPictureConfig) FromReader(r io.Reader) error

func (*InputPictureConfig) ToSpots

func (ipc *InputPictureConfig) ToSpots() Spots

func (*InputPictureConfig) WriteToFile

func (ipc *InputPictureConfig) WriteToFile(path string) error

type Spots

type Spots interface {
	sort.Interface
}

func NewSpots

func NewSpots(width int, points []image.Point) Spots

func NewSpotsFromConfig

func NewSpotsFromConfig(path string) (Spots, error)

Jump to

Keyboard shortcuts

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