• Loop fade to a random color

    Returns

    Promise that resolves when the loop is finished

    Parameters

    • device: Device

      Govee device

    • steps: number

      Number of steps to fade, minimum 3

    • duration: number

      Duration of fade in milliseconds, minimum 100

    • loop: (() => Promise<boolean>)

      Function that returns a promise that resolves to a boolean. If true, the loop will continue.

        • (): Promise<boolean>
        • Returns Promise<boolean>

    • Optional lastColor: Colord

      (Optional) Last color to fade from (defaults to current color)

    Returns Promise<void>

Generated using TypeDoc