This is a documentation subpage for Template:Color temperature. It may contain usage information, categories and other content that is not part of the original template page. |
((Color temperature)) returns the color of a black body at a desired temperature. A polynomial approximation over the mired is used.
Template expects a temperature between 837 K and 1,000,000 K in first parameter. Color is automatically labeled with the temperature unless the parameter text
is filled.
hexval
tag can be used to return only an hexadecimal color code.
((Color temperature|3400))
returns 3,400 K
((Color temperature|1850|text=Candle light))
returns Candle light
((Color temperature|6500|hexval))
returns FFF9FF.
<span style="background:#((Color temperature|42000|hexval))[...]
NAOS
Blue supergiant star
40,000 K - 44,000 K
Display the color of a black body at a desired temperature
Parameter | Description | Type | Status | |
---|---|---|---|---|
Temperature in kelvins | 1 | Temperature of the black body between 837 K and 1000000 K
| Number | required |
hexval | 2 | hexval is an optional tag used to return only the hexadecimal value
| String | optional |
Label | text | Text displayed next to the color
| String | optional |
The template returns almost exactly the colors of the gradient below. More information on image description.