Documentation
¶
Overview ¶
Package animation provides functionality to animate graphic primitives on the screen.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tween ¶
type Tween struct {
// contains filtered or unexported fields
}
Tween interpolates two Params over time. Use NewTween() to create a new Tween.
func NewTween ¶
func NewTween(start, end *gfx.Params, duration time.Duration, offset time.Duration, looping bool) *Tween
NewTween returns a new Tween for two Params, where start and end are the two Params to be interpolated. offset indicates the duration after which the interpolation starts. looping indicates if the interpolation should go back to the beginning when the end is reached.
Click to show internal directories.
Click to hide internal directories.