spritesheet

package
v0.0.0-...-1cf6f13 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spritesheet

type Spritesheet struct {
	Sprites sprite.Sprites
	// contains filtered or unexported fields
}

func FromFile

func FromFile(file *os.File, spritesize int) (*Spritesheet, error)

func FromPath

func FromPath(filepath string, spritesize int) (*Spritesheet, error)

func (*Spritesheet) FilterUnique

func (sp *Spritesheet) FilterUnique()

Removes duplicate sprites in spritesheet.

func (*Spritesheet) SaveToFile

func (sp *Spritesheet) SaveToFile(filename string) error

Saves the in memory spritesheet to the given filename.

Jump to

Keyboard shortcuts

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