sprite

package
v0.0.0-...-a4a601d Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageAreEquals

func ImageAreEquals(i0, i1 *image.NRGBA) bool

Types

type TileHistorical

type TileHistorical struct {
	Label string       `json:"label"`
	Index int          `json:"index"`
	Tile  *image.NRGBA `json:"sprite"`
}

type TilesHistorical

type TilesHistorical struct {
	Width  int              `json:"width"`
	Height int              `json:"height"`
	Tiles  []TileHistorical `json:"sprites"`
}

func NewSpritesHistorical

func NewSpritesHistorical(width, height int) *TilesHistorical

func (*TilesHistorical) Add

func (s *TilesHistorical) Add(spr TileHistorical)

func (*TilesHistorical) Append

func (s *TilesHistorical) Append(n *TilesHistorical)

func (TilesHistorical) IndexOf

func (s TilesHistorical) IndexOf(i *image.NRGBA) int

func (TilesHistorical) LastIndex

func (s TilesHistorical) LastIndex() int

func (*TilesHistorical) Save

func (s *TilesHistorical) Save(folderpath string) error

func (TilesHistorical) Tile

Jump to

Keyboard shortcuts

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