Versions in this module Expand all Collapse all v0 v0.2.0 Sep 27, 2017 v0.1.0 Aug 1, 2017 Changes in this version + func ColorInterpolate(n comm.Float64Notifier, l ColorInterpolater) comm.ColorNotifier + func FloatInterpolate(w comm.Float64Notifier, l FloatInterpolater) comm.Float64Notifier + type Animation interface + Duration func() time.Duration + Tick func(time.Duration) float64 + type Basic struct + Dur time.Duration + Ease FloatInterpolater + End float64 + Start float64 + func (a *Basic) Duration() time.Duration + func (a *Basic) Tick(t time.Duration) float64 + type ColorInterpolater interface + Interpolate func(float64) color.Color + type CubicBezierEase struct + X0 float64 + X1 float64 + Y0 float64 + Y1 float64 + func (e CubicBezierEase) Interpolate(a float64) float64 + func (e CubicBezierEase) Notifier(a comm.Float64Notifier) comm.Float64Notifier + type FloatInterpolater interface + Interpolate func(float64) float64 + var DefaultEase FloatInterpolater = CubicBezierEase{ ... } + var DefaultInEase FloatInterpolater = CubicBezierEase{ ... } + var DefaultInOutEase FloatInterpolater = CubicBezierEase{ ... } + var DefaultOutEase FloatInterpolater = CubicBezierEase{ ... } + type FloatLerp struct + End float64 + Start float64 + func (e FloatLerp) Notifier(a comm.Float64Notifier) comm.Float64Notifier + func (f FloatLerp) Interpolate(a float64) float64 + type LinearEase struct + func (e LinearEase) Interpolate(a float64) float64 + func (e LinearEase) Notifier(a comm.Float64Notifier) comm.Float64Notifier + type PolyInEase struct + Exp float64 + func (e PolyInEase) Interpolate(a float64) float64 + func (e PolyInEase) Notifier(a comm.Float64Notifier) comm.Float64Notifier + type PolyInOutEase struct + ExpIn float64 + ExpOut float64 + func (e PolyInOutEase) Interpolate(a float64) float64 + func (e PolyInOutEase) Notifier(a comm.Float64Notifier) comm.Float64Notifier + type PolyOutEase struct + Exp float64 + func (e PolyOutEase) Interpolate(a float64) float64 + func (e PolyOutEase) Notifier(a comm.Float64Notifier) comm.Float64Notifier + type RGBALerp struct + End color.Color + Start color.Color + func (e RGBALerp) Interpolate(a float64) color.Color + func (e RGBALerp) Notifier(n comm.Float64Notifier) comm.ColorNotifier + type Value struct + func (v *Value) Notify(f func()) comm.Id + func (v *Value) Run(a Animation) (cancelFunc func()) + func (v *Value) SetValue(val float64) + func (v *Value) Unnotify(id comm.Id) + func (v *Value) Value() float64