Documentation
¶
Overview ¶
Package gosang provides useful interfaces and functions for reading and writing Gersang sprites.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Frame ¶
type Frame struct {
// contains filtered or unexported fields
}
Frame represents single frame in sprite.
type Sprite ¶
type Sprite interface { ColorBits() int // Color bits. 8 or 32. HasAlpha() bool // Whether frame has alpha channel or not. FrameWidth() int // Frame's width in pixels. FrameHeight() int // Frame's height in pixels. FrameCount() int Width() int Height() int Frame(idx int) (*Frame, error) // Specific frame's data. Save(w io.Writer) error // Write sprite data to w. // contains filtered or unexported methods }
Sprite represents single sprite. It can either be 8-bit or 32-bit sprite.
Click to show internal directories.
Click to hide internal directories.