Represents a variable that can dynamically change with time (using requestAnimationFrame)

Constructors

Accessors

Methods

Constructors

  • Parameters

    • fn: (val: number) => void
    • config: { defaultValue: number; max: number; min: number; wrap: boolean }

    Returns Dynamic

Accessors

Methods

  • Starts infinite movement

    Parameters

    • invert: boolean = false
    • speedMult: number = 1

    Returns void

  • Increases/decreases the target position

    Parameters

    • step: number
    • speedMult: number = 1

    Returns void