Stores a single keyframe of an LED animation, The keyframe is made of a time and an intensity.

Constructors

Properties

Accessors

Methods

Constructors

Properties

timeAndIntensity: number = 0

Accessors

Methods

  • Compares two SimpleKeyframe instances.

    Parameters

    Returns boolean

    Whether the two SimpleKeyframe instances have the same data.

  • Updates the instance timeAndIntensity member with the given time and intensity.

    Parameters

    • time: number

      The time in milliseconds, from to 0 to 1024 excluded.

    • intensity: number

      The light intensity, from to 0 to 255 excluded.

    Returns void