pngsheet

package
v0.0.0-...-eda9d95 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidFormat = errors.New("invalid format")

Functions

This section is empty.

Types

type Animation

type Animation struct {
	Frames    []int
	IsLooping bool
}

type Frame

type Frame struct {
	Left, Top, Right, Bottom, OriginX, OriginY int
}

type Info

type Info struct {
	Palette    color.Palette
	Frames     []Frame
	Animations []Animation
}

func Load

func Load(f io.ReadSeeker) (*image.Paletted, Info, error)

func LoadInfo

func LoadInfo(f io.Reader) (Info, error)

Directories

Path Synopsis
tools

Jump to

Keyboard shortcuts

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