pub fn new(r: Rational, g: Rational, b: Rational, a: Rational) -> Self {
        let ff = Rational::new(255, 1);
        let one = Rational::one();
        Rgba {
            red: cap(r, &ff),
            green: cap(g, &ff),
            blue: cap(b, &ff),
            alpha: cap(a, &one),
        }
    }
/// Create a new rgba color.
Create a new rgba color.
Create a new rgba color .
pub fn new(r: Rational, g: Rational, b: Rational, a: Rational) -> Self {
        let ff = Rational::new(255, 1);
        let one = Rational::one();
        Rgba {
            red: cap(r, &ff),
            green: cap(g, &ff),
            blue: cap(b, &ff),
            alpha: cap(a, &one),
        }
    }
pub fn new ( r : Rational , g : Rational , b : Rational , a : Rational ) -> Self { let ff = Rational :: new ( 255 , 1 ) ; let one = Rational :: one ( ) ; Rgba { red : cap ( r , & ff ) , green : cap ( g , & ff ) , blue : cap ( b , & ff ) , alpha : cap ( a , & one ) , } }
Create a new rgba color.
Create a new rgba color .
r
Rational
g
Rational
b
Rational
a
Rational