Documentation
¶
Overview ¶
Package ase implements decoding and encoding .ase/.aseprite files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cel ¶
type Cel struct {
Layer uint16 // The cel layer.
Opacity byte // The cel opacity.
Type CelType // The cel type.
Width uint16 // The width of the cel in pixels.
Height uint16 // The height of the cel in pixels.
Image draw.Image // The cel image.
Link uint16 // The frame this cel is linked to.
}
Cel represent a cel.
func (Cel) ColorModel ¶
ColorModel returns the color model of the cel.
type File ¶
type File struct {
Width uint16 // Width in pixels.
Height uint16 // Height in pixels.
Model color.Model // Color model.
Frames []Frame // Frames.
Layers []Layer // Layers.
Tags []Tag // Tags.
}
File represents an aseprite file.
type Frame ¶
type Frame struct {
Duration uint16 // The duration of the frame in milliseconds.
Cels []Cel // Cels in the frame.
}
Frame represents a single frame.
type RenderOptions ¶
type RenderOptions struct {
PadX int // How much padding to put between each frame.
Split Split // How to split the file.
Frame int // The frame to render.
Layer string // The layer to render.
Tag string // The tag to render.
}
RenderOptions contains various options for rendering a file.
Click to show internal directories.
Click to hide internal directories.