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

◆ from_hsl()

static xtd::drawing::color xtd::drawing::color::from_hsl ( float  hue,
float  saturation,
float  lightness 
)
staticnoexcept

Creates a xtd::drawing::color class from the three HSL component (hue, saturation, and lightness) 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.
lightnessThe xtd::drawing::color lightness. The lightness 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.