Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Animation ¶
type Animation struct {
Pix []uint8
FrameCount int
AnimationExpression int
// contains filtered or unexported fields
}
func NewAnimation ¶
func NewAnimation(width, height int, expression int, animationType AnimationType) Animation
func (Animation) ColorModel ¶
func (Animation) Type ¶
func (a Animation) Type() AnimationType
type AnimationType ¶
type AnimationType int
const ( AnimationHead AnimationType = iota AnimationBody32x32 AnimationBody128x128 )
type Cape ¶
type Cape struct {
Pix []uint8
// contains filtered or unexported fields
}
func (Cape) ColorModel ¶
type ModelConfig ¶
type ModelConfig struct {
Default string `json:"default"`
AnimatedFace string `json:"animated_face,omitempty"`
}
func DecodeModelConfig ¶
func DecodeModelConfig(b []byte) (ModelConfig, error)
func (ModelConfig) Encode ¶
func (cfg ModelConfig) Encode() []byte
Click to show internal directories.
Click to hide internal directories.