Class ColorUtils

Constructors

Methods

  • Returns the Hue and Saturation representation of the given color temperature in mired.

    Parameters

    • colorTemperature: number

      The color temperature in mired.

    • roundResults: boolean = true

      The lookup table has a precision of .1 decimal places. The given characteristics only have a step value of 1. Thus, the method will round the results by default to an integer value. This can be turned off using this option.

    Returns {
        hue: number;
        saturation: number;
    }

    An number array of length 2 with the first element being the saturation and the second argument being the hue.

    • hue: number
    • saturation: number