Temperature To Color

Pure
TemperatureToColor

Converts a color temperature in Kelvin to an RGB color using the Planckian locus approximation.

Type: Pure (no side effects)
Category: Fortuna|Color & Visual
Keywords: color & visual

Inputs

NameTypeDefaultDescription
KelvinfloatKelvin parameter

Outputs

NameTypeDescription
ReturnValueFLinearColorReturnValue output

Example Use Cases

Example 1

Simulate different lighting conditions (candlelight=1900K, daylight=6500K).

Example 2

Day/night cycle sky color.