Class FiniteRepeatArgs

An instance of FiniteRepeatArgs is generated by a Repeat object with finite running time, to be passed into its action callback. The FiniteRepeatArgs class provides information about how long a repeat has been running, as well as how far through repeat's lifetime we are.

Hierarchy

Constructors

Accessors

Constructors

  • Parameters

    • ms: number

      How many milliseconds the repeat has been running for.

    • percent: number

      A number ranging from 0 to 1, signifying how far through a repeat's lifetime we are.

    Returns FiniteRepeatArgs

Accessors

  • get ms(): number
  • How many milliseconds the repeat has been running for.

    Returns number

  • get percent(): number
  • A number ranging from 0 to 1, signifying how far through a repeat's lifetime we are.

    Returns number

Generated using TypeDoc