Function colortemp::rgb_to_temp [] [src]

pub fn rgb_to_temp(col: RGB) -> i64

Calculates the color temperature for a given RGB value

This is implemented via a reverse lookup onto @temperature_to_rgb and as such should be considered rather slow