Expand description

Convert a color temperature into RGB

This is a rust port of the work by Tanner Helland

Example

use tempergb::{rgb_from_temperature, Color};
let temperature = 2500;
let rgb = tempergb::rgb_from_temperature(temperature);
assert_eq!(rgb, (255, 159, 70));
assert_eq!(rgb.r(), 255);
assert_eq!(rgb.g(), 159);
assert_eq!(rgb.b(), 70);

Structs

The RGB value for a given temperature.

Functions

Converts a color temperature to RBG Color.