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

◆ from_hsb()

static xtd::drawing::color xtd::drawing::color::from_hsb ( float  hue,
float  saturation,
float  brightness 
)
staticnoexcept

Creates a xtd::drawing::color class from the three HSV component (hue, saturation, and brightness) values.

Parameters
hueThe xtd::drawing::color saturation. The saturation ranges from 0.0 through 1.0, where 0.0 is grayscale and 1.0 is the most saturated.
saturationThe xtd::drawing::color saturation. The saturation ranges from 0.0 through 1.0, where 0.0 is grayscale and 1.0 is the most saturated.
brightnessThe xtd::drawing::color lightness. The brightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white.
Returns
xtd::drawing::color The xtd::drawing::color structure that this method creates.