Skip to main content

@microsoft/fast-colors > rgbToTemperature

rgbToTemperature() function

Convert a rgb color to a color temperature

Signature:
export declare function rgbToTemperature(rgb: ColorRGBA64): number;

Parameters

ParameterTypeDescription
rgbColorRGBA64the color to convert
Returns:

number

Remarks

The alpha channel of the input is ignored