Class Hsl
- Namespace
- Dynamicweb.Imaging.Colors
- Assembly
- Dynamicweb.Core.dll
Representation of HSL color space
- Inheritance
-
Hsl
- Inherited Members
Constructors
Hsl(Color)
Initializes a new instance of the Hsl class.
Parameters
color
ColorThe color.
Hsl(float, double, double)
Initializes a new instance of the Hsl class.
Parameters
Properties
Color
Gets the color.
Property Value
- Color
The color.
Hue
Gets the hue in degrees of the hsl color representation. 0-360
Property Value
- double
The hue. 0-360
Lightness
Gets the value index of the hsl color representation. 0-1
Property Value
- double
The value. 0-1
Saturation
Gets the saturation index of the hsl color representation. 0-1
Property Value
- double
The saturation. 0-1
Methods
ColorFromHsl(double, double, double)
Colors from HSL.
Parameters
Returns
ColorToHsl(Color)
Converts a color to HSL.
Parameters
color
ColorThe color.
GetVariation(double, double)
Gets a variation over the current color with the specified saturation and value.
Parameters
Returns
GetVariationByHue(float)
Gets a variation over the current color with the specified hue.
Parameters
hue
floatThe hue.
Returns
GetVariationBySaturation(double)
Gets a variation over the current color with the specified saturation.
Parameters
saturation
doubleThe saturation.
Returns
GetVariationByValue(double)
Gets a variation over the current color with the specified lightness.
Parameters
lightness
doubleThe lightness.