xtd 0.2.0
Loading...
Searching...
No Matches

◆ dark() [2/2]

static color xtd::drawing::color::dark ( const color color,
double  percent 
)
staticnoexcept

Creates a new darker color of the specified color with specified percent factor.

Parameters
colorThe color to dark.
percentThe darker factor in % (from 0.0 to 1.0).
Returns
The new color.
Remarks
Thus, a percent value of 1.0 will return the xtd::drawing::color::black, while a value of 0.0 will return the color.