Documentation ¶
Index ¶
- func Clerp(start, end, value float32) float32
- func Color(t *Tween, arr []float32) []float32
- func ColorFmt(v engine.Color, arr []float32, s string) engine.Color
- func EaseInBack(start, end, value float32) float32
- func EaseInBounce(start, end, value float32) float32
- func EaseInCirc(start, end, value float32) float32
- func EaseInCubic(start, end, value float32) float32
- func EaseInElastic(start, end, value float32) float32
- func EaseInExpo(start, end, value float32) float32
- func EaseInOutBack(start, end, value float32) float32
- func EaseInOutBounce(start, end, value float32) float32
- func EaseInOutCirc(start, end, value float32) float32
- func EaseInOutCubic(start, end, value float32) float32
- func EaseInOutElastic(start, end, value float32) float32
- func EaseInOutExpo(start, end, value float32) float32
- func EaseInOutQuad(start, end, value float32) float32
- func EaseInOutQuint(start, end, value float32) float32
- func EaseInOutSine(start, end, value float32) float32
- func EaseInQuad(start, end, value float32) float32
- func EaseInQuart(start, end, value float32) float32
- func EaseInQuint(start, end, value float32) float32
- func EaseInSine(start, end, value float32) float32
- func EaseOutBack(start, end, value float32) float32
- func EaseOutBounce(start, end, value float32) float32
- func EaseOutCirc(start, end, value float32) float32
- func EaseOutCubic(start, end, value float32) float32
- func EaseOutElastic(start, end, value float32) float32
- func EaseOutExpo(start, end, value float32) float32
- func EaseOutInQuart(start, end, value float32) float32
- func EaseOutQuad(start, end, value float32) float32
- func EaseOutQuint(start, end, value float32) float32
- func EaseOutSine(start, end, value float32) float32
- func EeaseOutQuart(start, end, value float32) float32
- func Linear(start, end, value float32) float32
- func Loop(t *Tween, progress float32) (newProgress float32, destroy bool)
- func None(t *Tween, progress float32) (newProgress float32, destroy bool)
- func PingPong(t *Tween, progress float32) (newProgress float32, destroy bool)
- func Position(t *Tween, arr []float32) []float32
- func Punch(amplitude, value float32) float32
- func Rotation(t *Tween, arr []float32) []float32
- func Scale(t *Tween, arr []float32) []float32
- func Spring(start, end, value float32) float32
- func VectorFmt(v engine.Vector, arr []float32, s string) engine.Vector
- func VectorFmtRotation(v engine.Vector, arr []float32, s string) engine.Vector
- func WorldPosition(t *Tween, arr []float32) []float32
- func WorldRotation(t *Tween, arr []float32) []float32
- func WorldScale(t *Tween, arr []float32) []float32
- type Algorithm
- type LoopFunc
- type Tween
- func Create(t *Tween) *Tween
- func CreateHelper(target *engine.GameObject, typef TypeFunc, from []float32, to []float32, ...) *Tween
- func CreateHelper2(target *engine.GameObject, typef TypeFunc, from []float32, to []float32, ...) *Tween
- func CreateHelper3(target *engine.GameObject, typef TypeFunc, from []float32, to []float32, ...) *Tween
- func CreateHelper4(target *engine.GameObject, typef TypeFunc, from []float32, to []float32, ...) *Tween
- func CreateHelper5(target *engine.GameObject, typef TypeFunc, from []float32, to []float32, ...) *Tween
- func CreateHelper6(target *engine.GameObject, typef TypeFunc, from []float32, to []float32, ...) *Tween
- type Tweens
- type TypeFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EaseInBack ¶
func EaseInBounce ¶
func EaseInCirc ¶
func EaseInCubic ¶
func EaseInElastic ¶
func EaseInExpo ¶
func EaseInOutBack ¶
func EaseInOutBounce ¶
func EaseInOutCirc ¶
func EaseInOutCubic ¶
func EaseInOutElastic ¶
func EaseInOutExpo ¶
func EaseInOutQuad ¶
func EaseInOutQuint ¶
func EaseInOutSine ¶
func EaseInQuad ¶
func EaseInQuart ¶
func EaseInQuint ¶
func EaseInSine ¶
func EaseOutBack ¶
func EaseOutBounce ¶
func EaseOutCirc ¶
func EaseOutCubic ¶
func EaseOutElastic ¶
func EaseOutExpo ¶
func EaseOutInQuart ¶
func EaseOutQuad ¶
func EaseOutQuint ¶
func EaseOutSine ¶
func EeaseOutQuart ¶
func VectorFmtRotation ¶
func WorldPosition ¶
func WorldRotation ¶
func WorldScale ¶
Types ¶
type Tween ¶
type Tween struct { Target *engine.GameObject From []float32 To []float32 Time time.Duration Algo Algorithm Loop LoopFunc StartCallback func() EndCallback func() Update func([]float32) Type TypeFunc Format string // contains filtered or unexported fields }
func CreateHelper ¶
func CreateHelper2 ¶
func CreateHelper3 ¶
func CreateHelper4 ¶
func CreateHelper5 ¶
func CreateHelper6 ¶
type Tweens ¶
type Tweens struct { engine.BaseComponent TweensArr []*Tween }
func (*Tweens) RemoveTween ¶
Click to show internal directories.
Click to hide internal directories.