/**
    Instantiate a new `RGB` color representation with the given color
    component values. Values outside the accepted range will be clamped.
    */
Instantiate a new `RGB` color representation with the given color
component values. Values outside the accepted range will be clamped.
Instantiate a new ` RGB ` color representation with the given color component values . Values outside the accepted range will be clamped .
pub fn new(red: f32, green: f32, blue: f32) -> RGB {
        RGB {
            r: constrain_f32(red),
            g: constrain_f32(green),
            b: constrain_f32(blue),
        }
    }
pub fn new ( red : f32 , green : f32 , blue : f32 ) -> RGB { RGB { r : constrain_f32 ( red ) , g : constrain_f32 ( green ) , b : constrain_f32 ( blue ) , } }
Instantiate a new `RGB` color representation with the given color
component values.
Instantiate a new ` RGB ` color representation with the given color component values .
red
f32
green
f32
blue
f32