pub fn rgbf565(r: f32, g: f32, b: f32) -> u16 {
    (((r * ALMOST_32) as u16) << 11) |
      (((g * ALMOST_64) as u16) << 5) |
      ((b * ALMOST_32) as u16)
}
/** Truncate 32 bit RGB to RBG565 */
Truncate 32 bit RGB to RBG565
Truncate 32 bit RGB to RBG565
pub fn rgbf565(r: f32, g: f32, b: f32) -> u16 {
    (((r * ALMOST_32) as u16) << 11) |
      (((g * ALMOST_64) as u16) << 5) |
      ((b * ALMOST_32) as u16)
}
pub fn rgbf565 ( r : f32 , g : f32 , b : f32 ) -> u16 { ( ( ( r * ALMOST_32 ) as u16 ) << 11 ) | ( ( ( g * ALMOST_64 ) as u16 ) << 5 ) | ( ( b * ALMOST_32 ) as u16 ) }
Truncate 32 bit RGB to RBG565
Truncate 32 bit RGB to RBG565
r
f32
g
f32
b
f32
r
f32
g
f32
b
f32