sprite

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vertical

type Vertical struct {
	BaseName  string
	Width     int
	MaxHeight int
	// contains filtered or unexported fields
}

func NewVertical

func NewVertical(width int) *Vertical

func (*Vertical) AddFile

func (s *Vertical) AddFile(fn string) (spritePath string, offset int, err error)

func (*Vertical) AddThumb

func (s *Vertical) AddThumb(th photo.Thumb) (spritePath string, offset int, err error)

func (*Vertical) Flush

func (s *Vertical) Flush() error

Jump to

Keyboard shortcuts

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