Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentTimeMs ¶
func GetCurrentTimeMs() int
Types ¶
type BackEase ¶
type BackEase struct {
EasingFunction
Amplitude float64
}
*
- Easing function with a ease back shape (see link below).
- @see https://easings.net/#easeInBack
func NewBackEase ¶
func NewBackEase() *BackEase
type BounceEase ¶
type BounceEase struct {
EasingFunction
/** Defines the number of bounces */
Bounces float64
/** Defines the amplitude of the bounce*/
Bounciness float64
}
func NewBounceEase ¶
func NewBounceEase() *BounceEase
func (*BounceEase) EaseInCore ¶
func (this *BounceEase) EaseInCore(gradient float64) float64
type CircleEase ¶
type CircleEase struct {
EasingFunction
}
*
- Easing function with a circle shape (see link below).
- @see https://easings.net/#easeInCirc
func NewCircleEase ¶
func NewCircleEase() *CircleEase
func (*CircleEase) EaseInCore ¶
func (this *CircleEase) EaseInCore(gradient float64) float64
type EasingFunction ¶
type EasingFunction struct {
// contains filtered or unexported fields
}
func (*EasingFunction) Ease ¶
func (this *EasingFunction) Ease(core IEasingCoreFunction, gradient float64) float64
func (*EasingFunction) EaseInCore ¶
func (this *EasingFunction) EaseInCore(gradient float64) float64
type EasingMode ¶
type EasingMode uint8
const ( /** * Interpolation follows the mathematical formula associated with the easing function. */ EASINGMODE_EASEIN EasingMode = iota /** * Interpolation follows 100% interpolation minus the output of the formula associated with the easing function. */ EASINGMODE_EASEOUT /** * Interpolation uses EaseIn for the first half of the animation and EaseOut for the second half. */ EASINGMODE_EASEINOUT )
type IEasingCoreFunction ¶
type IEasingFunction ¶
type IEasingFunction interface {
IEasingCoreFunction
/**
* Given an input gradient between 0 and 1, this returns the corresponding value
* of the easing function.
*/
Ease(corefunc IEasingCoreFunction, gradient float64) float64
}
Click to show internal directories.
Click to hide internal directories.