Module:Color temperature/doc
Appearance
| This is a documentation subpage for Module:Color temperature. It may contain usage information, categories and other content that is not part of the original module page. |
| This module is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing. |
Usage
[edit]This module is used by Template:Color temperature. The input color temperature may be any value greater than or equal to 800, and is measured in kelvins. The resulting RGB value is in sRGB.
{{#invoke:Color temperature|hex|2700}} -> ffad59
{{#invoke:Color temperature|swatch|5000}} -> 5,000 K
{{#invoke:Color temperature|xy|8000}} -> 0.29517288, 0.30473579