Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

Properties

power: number

Defines the power of the function

EASINGMODE_EASEIN: 0 = 0

Interpolation follows the mathematical formula associated with the easing function.

EASINGMODE_EASEINOUT: 2 = 2

Interpolation uses EaseIn for the first half of the animation and EaseOut for the second half.

EASINGMODE_EASEOUT: 1 = 1

Interpolation follows 100% interpolation minus the output of the formula associated with the easing function.

Methods

  • ease(gradient: number): number
  • Given an input gradient between 0 and 1, this returns the corresponding value of the easing function.

    Parameters

    • gradient: number

      Defines the value between 0 and 1 we want the easing value for

    Returns number

    the corresponding value on the curve defined by the easing function

  • getEasingMode(): number
  • Gets the current easing mode.

    Returns number

    the easing mode

  • setEasingMode(easingMode: number): void
  • Sets the easing mode of the current function.

    Parameters

    • easingMode: number

      Defines the willing mode (EASINGMODE_EASEIN, EASINGMODE_EASEOUT or EASINGMODE_EASEINOUT)

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Inherited method
  • Static method

Settings

Theme