CssHsl Class

hsl() and hsla() (https://drafts.css-houdini.org/css-typed-om-1/#csshsl).

public sealed class CssHsl : CssColorValue
Inheritance
CssColorValue CssHsl

Constructors

NameDescription
CssHsl(CssColorChannel, CssColorChannel, CssColorChannel, CssColorChannel?)https://drafts.css-houdini.org/css-typed-om-1/#dom-csshsl-csshsl

CssHsl(CssColorChannel, CssColorChannel, CssColorChannel, CssColorChannel?)

CssColorValue.cs

https://drafts.css-houdini.org/css-typed-om-1/#dom-csshsl-csshsl

public CssHsl(CssColorChannel h, CssColorChannel s, CssColorChannel l, CssColorChannel? alpha = null)

Properties

NameDescription
AlphaGets or sets the alpha (opacity) channel of the hsl() color.
HGets or sets the hue channel of the hsl() color.
LGets or sets the lightness channel of the hsl() color.
SGets or sets the saturation channel of the hsl() color.

Gets or sets the alpha (opacity) channel of the hsl() color.

public CssColorChannel Alpha { get; set; }

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

NameDescription
ToString()The serialization of the value (https://drafts.css-houdini.org/css-typed-om-1/#stylevalue-serialization).

The serialization of the value (https://drafts.css-houdini.org/css-typed-om-1/#stylevalue-serialization).

public override string ToString()

Returns

string