Class: KelvinUtil
Temperature Color Converter
Constructors
Methods
Constructors
constructor
• new KelvinUtil(): KelvinUtil
Returns
Methods
color_temperature_to_rgb
▸ color_temperature_to_rgb(color_temperature_Kelvin
): Color
Convert color temperature to color object
Parameters
Name | Type | Description |
---|---|---|
color_temperature_Kelvin | number | Color temperature value |
Returns
Defined in
get_red
▸ get_red(temperature
): number
Return red component [0-255]
Parameters
Name | Type |
---|---|
temperature | number |
Returns
number
Defined in
get_green
▸ get_green(temperature
): number
Return green component [0-255]
Parameters
Name | Type |
---|---|
temperature | number |
Returns
number
Defined in
get_blue
▸ get_blue(temperature
): number
Return blue component [0-255]
Parameters
Name | Type |
---|---|
temperature | number |
Returns
number