fn rgb_to_u32(rgb: Rgb<u8>) -> u32
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.