Documentation ¶
Index ¶
- type Anim
- func (a *Anim) Draw()
- func (a *Anim) GetAlpha() float64
- func (a *Anim) GetCentre() (x, y int)
- func (a *Anim) GetCount() int
- func (a *Anim) GetCurrentFrame() int
- func (a *Anim) GetOffset() (x, y int)
- func (a *Anim) GetRate() int
- func (a *Anim) GetRotate() float64
- func (a *Anim) GetScale() (x, y float64)
- func (a *Anim) GetTag() string
- func (a *Anim) SetAlpha(alpha float64)
- func (a *Anim) SetCentre(x, y int)
- func (a *Anim) SetDraw(start, count int)
- func (a *Anim) SetEventCallback(cfun event.AnimEventFunc)
- func (a *Anim) SetFrameFromData(index int, data []byte) (err error)
- func (a *Anim) SetFrameFromImage(index int, img image.Image) (err error)
- func (a *Anim) SetOffset(x, y int)
- func (a *Anim) SetRate(rate int)
- func (a *Anim) SetRotate(rotate float64)
- func (a *Anim) SetScale(x, y float64)
- func (a *Anim) SetTag(tag string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Anim ¶
type Anim struct {
// contains filtered or unexported fields
}
动画
func (*Anim) SetFrameFromData ¶
设置图片
func (*Anim) SetFrameFromImage ¶
设置图片
Click to show internal directories.
Click to hide internal directories.