@microsoft/fast-colors > temperatureToRGB

temperatureToRGB() function

Converts a color temperature to a ColorRGBA64

Signature:
export declare function temperatureToRGB(tempKelvin: number, alpha?: number): ColorRGBA64;

Parameters

ParameterTypeDescription
tempKelvinnumberthe temperature to convert
alphanumberthe alpha value
Returns:

ColorRGBA64