Versions in this module Expand all Collapse all v2 v2.0.0 Mar 17, 2023 Changes in this version + const DefaultDuration + const DefaultFPS + func Ease(alg EasingAlgorithmType, t float32) float32 + type Animation interface + BuildAnimation func(animationPercentage, arbitraryPercentage float32, ...) + BuildNormal func(currentKeyFrame KeyFrame, starterFunc StarterFunc) + Init func() + KeyFramesCount func() int + Reset func() + type AnimatorWidget struct + func Animator(a Animation) *AnimatorWidget + func (a *AnimatorWidget) Build() + func (a *AnimatorWidget) CurrentPercentageProgress() float32 + func (a *AnimatorWidget) Duration(duration time.Duration) *AnimatorWidget + func (a *AnimatorWidget) EasingAlgorithm(alg EasingAlgorithmType) *AnimatorWidget + func (a *AnimatorWidget) FPS(fps int) *AnimatorWidget + func (a *AnimatorWidget) ID(newID string) *AnimatorWidget + func (a *AnimatorWidget) IsRunning() bool + func (a *AnimatorWidget) Start(playMode PlayMode) + func (a *AnimatorWidget) StartCycle(numberOfCycles int, playMode PlayMode) + func (a *AnimatorWidget) StartKeyFrames(beginKF, destinationKF KeyFrame, cyclesCount int, playMode PlayMode) + func (a *AnimatorWidget) Trigger(triggerType TriggerType, playMode PlayMode, f TriggerFunc) *AnimatorWidget + type ColorFlowAnimation struct + func ColorFlow(widget giu.Widget, applying []giu.StyleColorID, colors ...func() color.RGBA) *ColorFlowAnimation + func ColorFlowColors(widget giu.Widget, applying []giu.StyleColorID, colors ...color.Color) *ColorFlowAnimation + func ColorFlowStyle(widget giu.Widget, normal, destiny giu.StyleColorID) *ColorFlowAnimation + func (c *ColorFlowAnimation) BuildAnimation(percentage, _ float32, sourceKeyFrame, destinyKeyFrame KeyFrame, _ PlayMode, ...) + func (c *ColorFlowAnimation) BuildNormal(currentKeyFrame KeyFrame, _ StarterFunc) + func (c *ColorFlowAnimation) Init() + func (c *ColorFlowAnimation) KeyFramesCount() int + func (c *ColorFlowAnimation) Reset() + type EasingAlgorithm func(plainPercentage float32) (percentage float32) + type EasingAlgorithmType byte + const EasingAlgInBack + const EasingAlgInBounce + const EasingAlgInElastic + const EasingAlgInOutBack + const EasingAlgInOutBounce + const EasingAlgInOutElastic + const EasingAlgInOutSine + const EasingAlgInSine + const EasingAlgMax + const EasingAlgNone + const EasingAlgOutBack + const EasingAlgOutBounce + const EasingAlgOutElastic + const EasingAlgOutSine + type KeyFrame byte + type MoveAnimation struct + func Move(w func(starter StarterFunc) giu.Widget, steps ...*MoveStep) *MoveAnimation + func (m *MoveAnimation) BuildAnimation(animationPercentage, _ float32, srcFrame, destFrame KeyFrame, mode PlayMode, ...) + func (m *MoveAnimation) BuildNormal(currentKF KeyFrame, starter StarterFunc) + func (m *MoveAnimation) DefaultStartPos() *MoveAnimation + func (m *MoveAnimation) Init() + func (m *MoveAnimation) KeyFramesCount() int + func (m *MoveAnimation) Reset() + func (m *MoveAnimation) StartPos(startPosStep func(startPos imgui.Vec2) *MoveStep) *MoveAnimation + type MoveStep struct + func Step(x, y float32) *MoveStep + func StepVec(v imgui.Vec2) *MoveStep + func (m *MoveStep) Absolute() *MoveStep + func (m *MoveStep) Bezier(points ...imgui.Vec2) *MoveStep + type PlayMode byte + const PlayBackward + const PlayForward + type StarterFunc interface + Start func(mode PlayMode) + StartCycle func(cyclesCount int, mode PlayMode) + StartKeyFrames func(beginKF, destinyKF KeyFrame, cyclesCount int, mode PlayMode) + type TransitionAnimation struct + func Transition(renderers ...func(starter StarterFunc)) *TransitionAnimation + func (t *TransitionAnimation) BuildAnimation(percentage, _ float32, bf, df KeyFrame, _ PlayMode, starter StarterFunc) + func (t *TransitionAnimation) BuildNormal(f KeyFrame, starter StarterFunc) + func (t *TransitionAnimation) Init() + func (t *TransitionAnimation) KeyFramesCount() int + func (t *TransitionAnimation) Reset() + type TriggerFunc func() bool + type TriggerType byte + const TriggerNever + const TriggerOnChange + const TriggerOnTrue Other modules containing this package github.com/gucio321/giu-animations