animation

package
v0.0.0-...-a44c12d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TransformRotate

func TransformRotate(gtx layout.Context, value float32) op.TransformOp

func TransformScaleCenter

func TransformScaleCenter(gtx layout.Context, value float32) op.TransformOp

func TransformX

func TransformX(gtx layout.Context, value float32) op.TransformOp

func TransformY

func TransformY(gtx layout.Context, value float32) op.TransformOp

Types

type AnimState

type AnimState struct {
	Value    float32
	Active   bool
	Finished bool
}

type Animation

type Animation struct {
	Sequence *gween.Sequence
	// contains filtered or unexported fields
}

func ButtonClick

func ButtonClick() *Animation

func ButtonEnter

func ButtonEnter() *Animation

func ButtonLeave

func ButtonLeave() *Animation

func NewAnimation

func NewAnimation(startImmediately bool, sequence *gween.Sequence) *Animation

func (*Animation) Pause

func (animation *Animation) Pause() *Animation

func (*Animation) Reset

func (animation *Animation) Reset() *Animation

func (*Animation) Resume

func (animation *Animation) Resume() *Animation

func (*Animation) Start

func (animation *Animation) Start() *Animation

func (*Animation) StartWithDelay

func (animation *Animation) StartWithDelay(delay time.Duration) *Animation

func (*Animation) Update

func (animation *Animation) Update(gtx layout.Context) AnimState

type TransformFunc

type TransformFunc func(gtx layout.Context, value float32) op.TransformOp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL