pub fn from_rgba(r: u8, g: u8, b: u8, a: u8) -> Self {
        Rgba {
            red: Rational::from_integer(r.into()),
            green: Rational::from_integer(g.into()),
            blue: Rational::from_integer(b.into()),
            alpha: Rational::from_integer(a.into()) / 255,
        }
    }
/// Create a color from rgba byte values.
Create a color from rgba byte values.
Create a color from rgba byte values .
pub fn from_rgba(r: u8, g: u8, b: u8, a: u8) -> Self {
        Rgba {
            red: Rational::from_integer(r.into()),
            green: Rational::from_integer(g.into()),
            blue: Rational::from_integer(b.into()),
            alpha: Rational::from_integer(a.into()) / 255,
        }
    }
pub fn from_rgba ( r : u8 , g : u8 , b : u8 , a : u8 ) -> Self { Rgba { red : Rational :: from_integer ( r . into ( ) ) , green : Rational :: from_integer ( g . into ( ) ) , blue : Rational :: from_integer ( b . into ( ) ) , alpha : Rational :: from_integer ( a . into ( ) ) / 255 , } }
Create a color from rgba byte values.
Create a color from rgba byte values .
r
u8
g
u8
b
u8
a
u8