pub fn light(&self, f: i32) -> Color {
        let (obj_data, funcs) = self.get_color_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).light)(obj_data, f);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Color::new_from_rc(t);
            } else {
                ret_val = Color::new_from_owned(t);
            }
            ret_val
        }
    }
///
/// Returns the lightness color component of this color.
///
/// **See also:** [`lightness_f()`]
/// [`get_hsl()`]
///
/// Returns the lightness color component of this color.
///
/// **See also:** [`value()`]
/// [`get_hsl_f()`]
///
/// Returns a lighter (or darker) color, but does not change this object.
///
/// If the *factor* is greater than 100, this functions returns a lighter
/// color. Setting *factor* to 150 returns a color that is 50% brighter. If
/// the *factor* is less than 100, the return color is darker, but we
/// recommend using the darker() function for this purpose. If the *factor*
/// is 0 or negative, the return value is unspecified.
///
/// The function converts the current RGB color to HSV, multiplies the value
/// (V) component by *factor* and converts the color back to RGB.
///
/// **See also:** [`darker()`]
/// [`is_valid()`]
///
/// Use lighter( *factor)* instead.
Returns the lightness color component of this color.

Returns the lightness color component of this color.



Returns a lighter (or darker) color, but does not change this object.

If the *factor* is greater than 100, this functions returns a lighter
color. Setting *factor* to 150 returns a color that is 50% brighter. If
the *factor* is less than 100, the return color is darker, but we
recommend using the darker() function for this purpose. If the *factor
is 0 or negative, the return value is unspecified.

The function converts the current RGB color to HSV, multiplies the value
(V) component by *factor* and converts the color back to RGB.



Use lighter( *factor)* instead.
Returns the lightness color component of this color . Returns the lightness color component of this color . Returns a lighter ( or darker ) color but does not change this object . If the * factor * is greater than 100 this functions returns a lighter color . Setting * factor * to 150 returns a color that is 50% brighter . If the * factor * is less than 100 the return color is darker but we recommend using the darker () function for this purpose . If the * factor is 0 or negative the return value is unspecified . The function converts the current RGB color to HSV multiplies the value ( V ) component by * factor * and converts the color back to RGB . Use lighter ( * factor ) * instead .
pub fn light(&self, f: i32) -> Color {
        let (obj_data, funcs) = self.get_color_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).light)(obj_data, f);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Color::new_from_rc(t);
            } else {
                ret_val = Color::new_from_owned(t);
            }
            ret_val
        }
    }
pub fn light ( & self , f : i32 ) -> Color { let ( obj_data , funcs ) = self . get_color_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . light ) ( obj_data , f ) ; let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Color :: new_from_rc ( t ) ; } else { ret_val = Color :: new_from_owned ( t ) ; } ret_val } }
Returns the lightness color component of this color.
Returns the lightness color component of this color .
&self
f
i32
&self
f
i32