Documentation ¶
Index ¶
- func ImageAreEquals(i0, i1 *image.NRGBA) bool
- type TileHistorical
- type TilesHistorical
- func (s *TilesHistorical) Add(spr TileHistorical)
- func (s *TilesHistorical) Append(n *TilesHistorical)
- func (s TilesHistorical) IndexOf(i *image.NRGBA) int
- func (s TilesHistorical) LastIndex() int
- func (s *TilesHistorical) Save(folderpath string) error
- func (s TilesHistorical) Tile(i *image.NRGBA) (TileHistorical, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageAreEquals ¶
Types ¶
type TileHistorical ¶
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) LastIndex ¶
func (s TilesHistorical) LastIndex() int
func (*TilesHistorical) Save ¶
func (s *TilesHistorical) Save(folderpath string) error
func (TilesHistorical) Tile ¶
func (s TilesHistorical) Tile(i *image.NRGBA) (TileHistorical, bool)
Click to show internal directories.
Click to hide internal directories.