CssOkLch Class

oklch() (https://drafts.css-houdini.org/css-typed-om-1/#cssoklch).

public sealed class CssOkLch : CssColorValue
Inheritance
CssColorValue CssOkLch

Constructors

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

CssOkLch(CssColorChannel, CssColorChannel, CssColorChannel, CssColorChannel?)

CssColorValue.cs

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

public CssOkLch(CssColorChannel l, CssColorChannel c, CssColorChannel h, CssColorChannel? alpha = null)

Properties

NameDescription
AlphaGets or sets the alpha (opacity) channel of the oklch() color.
CGets or sets the chroma channel of the oklch() color.
HGets or sets the hue channel of the oklch() color.
LGets or sets the lightness channel of the oklch() color.

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

public CssColorChannel Alpha { get; set; }

Gets or sets the chroma channel of the oklch() color.

public CssColorChannel C { get; set; }

Gets or sets the hue channel of the oklch() color.

public CssColorChannel H { get; set; }

Gets or sets the lightness channel of the oklch() color.

public CssColorChannel L { 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