CssHsl Class
hsl() and hsla() (https://drafts.css-houdini.org/css-typed-om-1/#csshsl).
public sealed class CssHsl : CssColorValue- Inheritance
CssColorValueCssHsl
Constructors
| Name | Description |
|---|---|
| CssHsl(CssColorChannel, CssColorChannel, CssColorChannel, CssColorChannel?) | https://drafts.css-houdini.org/css-typed-om-1/#dom-csshsl-csshsl |
CssHsl(CssColorChannel, CssColorChannel, CssColorChannel, CssColorChannel?)
CssColorValue.cshttps://drafts.css-houdini.org/css-typed-om-1/#dom-csshsl-csshsl
public CssHsl(CssColorChannel h, CssColorChannel s, CssColorChannel l, CssColorChannel? alpha = null)Properties
| Name | Description |
|---|---|
| Alpha | Gets or sets the alpha (opacity) channel of the hsl() color. |
| H | Gets or sets the hue channel of the hsl() color. |
| L | Gets or sets the lightness channel of the hsl() color. |
| S | Gets or sets the saturation channel of the hsl() color. |
Alpha
CssColorValue.csGets or sets the alpha (opacity) channel of the hsl() color.
public CssColorChannel Alpha { get; set; }Property value
See also
Gets or sets the hue channel of the hsl() color.
public CssColorChannel H { get; set; }Gets or sets the lightness channel of the hsl() color.
public CssColorChannel L { get; set; }Gets or sets the saturation channel of the hsl() color.
public CssColorChannel S { get; set; }Methods
| Name | Description |
|---|---|
| ToString() | The serialization of the value (https://drafts.css-houdini.org/css-typed-om-1/#stylevalue-serialization). |