pub fn dark(&self, f: i32) -> Color {
        let (obj_data, funcs) = self.get_color_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).dark)(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 a darker (or lighter) color, but does not change this object.
///
/// If the *factor* is greater than 100, this functions returns a darker
/// color. Setting *factor* to 300 returns a color that has one-third the
/// brightness. If the *factor* is less than 100, the return color is lighter,
/// but we recommend using the lighter() 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, divides the value (V)
/// component by *factor* and converts the color back to RGB.
///
/// **See also:** [`lighter()`]
/// [`is_valid()`]
///
/// Use darker( *factor)* instead.
Returns a darker (or lighter) color, but does not change this object.
If the *factor* is greater than 100, this functions returns a darker
color. Setting *factor* to 300 returns a color that has one-third the
brightness. If the *factor* is less than 100, the return color is lighter,
but we recommend using the lighter() 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, divides the value (V)
component by *factor* and converts the color back to RGB.



Use darker( *factor)* instead.
Returns a darker ( or lighter ) color but does not change this object . If the * factor * is greater than 100 this functions returns a darker color . Setting * factor * to 300 returns a color that has one - third the brightness . If the * factor * is less than 100 the return color is lighter but we recommend using the lighter () 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 divides the value ( V ) component by * factor * and converts the color back to RGB . Use darker ( * factor ) * instead .
pub fn dark(&self, f: i32) -> Color {
        let (obj_data, funcs) = self.get_color_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).dark)(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 dark ( & self , f : i32 ) -> Color { let ( obj_data , funcs ) = self . get_color_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . dark ) ( 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 a darker (or lighter) color, but does not change this object.
Returns a darker ( or lighter ) color but does not change this object .
&self
f
i32
&self
f
i32