Function deltachat::color::rgb_to_u32

source ·
fn rgb_to_u32((r, g, b): (f64, f64, f64)) -> u32
Expand description

Converts RGB tuple to a 24-bit number.

Returns a 24-bit number with 8 least significant bits corresponding to the blue color and 8 most significant bits corresponding to the red color.