pub fn new(r: f32, g: f32, b: f32) -> Colour {
        let mut c = Colour {
            r, g, b,
            a: 1.0,
            packed: 0
        };
        c.compute_packed();
        c
    }
/// Creates a colour from the red, green and blue components.
/// The colour is implicitly considered opaque, as in, it has an alpha value of one.
Creates a colour from the red, green and blue components.
The colour is implicitly considered opaque, as in, it has an alpha value of one.
Creates a colour from the red green and blue components . The colour is implicitly considered opaque as in it has an alpha value of one .
pub fn new(r: f32, g: f32, b: f32) -> Colour {
        let mut c = Colour {
            r, g, b,
            a: 1.0,
            packed: 0
        };
        c.compute_packed();
        c
    }
pub fn new ( r : f32 , g : f32 , b : f32 ) -> Colour { let mut c = Colour { r , g , b , a : 1.0 , packed : 0 } ; c . compute_packed ( ) ; c }
Creates a colour from the red, green and blue components.
Creates a colour from the red green and blue components .
r
f32
g
f32
b
f32
r
f32
g
f32
b
f32