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

Accessors

  • get intensity(): number
  • Gets the light intensity, from to 0 to 255 excluded.

    Returns number

  • get time(): number
  • Gets the time in milliseconds, from to 0 to 1024 excluded.

    Returns number

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