[][src]Function rpt::hex_color

pub fn hex_color(x: u32) -> Color

Construct a new color from an sRGB hex integer, applying gamma correction to return linear intensities

Example of use: hex_color(0xFFFFFF) for white, or hex_color(0xAB23F0) for purple.