pub fn rgba(r: f32, g: f32, b: f32, a: f32) -> Color {
        Color {
            r: clamp(r, 0.0, 1.0),
            g: clamp(g, 0.0, 1.0),
            b: clamp(b, 0.0, 1.0),
            a: clamp(a, 0.0, 1.0)
        }
    }
/// Creates a new color.
///
/// All parameters are clamped so that they are between 0 and 1, both inclusive.
Creates a new color.
All parameters are clamped so that they are between 0 and 1, both inclusive.
Creates a new color . All parameters are clamped so that they are between 0 and 1 both inclusive .
pub fn rgba(r: f32, g: f32, b: f32, a: f32) -> Color {
        Color {
            r: clamp(r, 0.0, 1.0),
            g: clamp(g, 0.0, 1.0),
            b: clamp(b, 0.0, 1.0),
            a: clamp(a, 0.0, 1.0)
        }
    }
pub fn rgba ( r : f32 , g : f32 , b : f32 , a : f32 ) -> Color { Color { r : clamp ( r , 0.0 , 1.0 ) , g : clamp ( g , 0.0 , 1.0 ) , b : clamp ( b , 0.0 , 1.0 ) , a : clamp ( a , 0.0 , 1.0 ) } }
Creates a new color.
Creates a new color .
r
f32
g
f32
b
f32
a
f32
r
f32
g
f32
b
f32
a
f32