@OPEN-KAPPA/COLORS
    Preparing search index...

    Class TemperatureAbstract

    Color-temperature related functions.

    Index

    Methods

    • Estimate CCT (Correlated Color Temperature) in Kelvin using McCamy's approximation.

      Parameters

      • color: Xyz

        The color to evaluate.

      Returns number

      The estimated color temperature in Kelvin.

    • Generate a color from a color-temperature. Based on Tanner Helland's algorithm. Supported range: 1000K - 40000K.

      Parameters

      • kelvin: number

        The color temperature in Kelvin.

      Returns Rgb

      The generated color.