combiner

package
v0.0.0-...-12127e2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageSpec

type ImageSpec struct {
	Files []string
	Mask  string
}

type ImageSpecMap

type ImageSpecMap map[string]ImageSpec

func GetImageMap

func GetImageMap(definitions SheetDefinitions, files []string) (result ImageSpecMap)

type SheetDefinition

type SheetDefinition struct {
	Mask     string   `json:"mask"`
	Prefix   string   `json:"prefix"`
	Suffixes []string `json:"suffixes"`
	Prefixes []string `json:"prefixes"`
}

type SheetDefinitions

type SheetDefinitions []SheetDefinition

func (*SheetDefinitions) FromJSON

func (s *SheetDefinitions) FromJSON(r io.Reader) error

type Spritesheet

type Spritesheet struct {
	// contains filtered or unexported fields
}

func (*Spritesheet) AddImage

func (s *Spritesheet) AddImage(filename string) (err error)

func (*Spritesheet) AddMask

func (s *Spritesheet) AddMask(filename string) (err error)

func (*Spritesheet) GetOutput

func (s *Spritesheet) GetOutput(filename string, margin int)

Jump to

Keyboard shortcuts

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