CssOkLab Class

oklab() (https://drafts.css-houdini.org/css-typed-om-1/#cssoklab).

public sealed class CssOkLab : CssColorValue
Inheritance
CssColorValue CssOkLab

Constructors

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

CssOkLab(CssColorChannel, CssColorChannel, CssColorChannel, CssColorChannel?)

CssColorValue.cs

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

public CssOkLab(CssColorChannel l, CssColorChannel a, CssColorChannel b, CssColorChannel? alpha = null)

Properties

NameDescription
AGets or sets the a axis channel of the oklab() color.
AlphaGets or sets the alpha (opacity) channel of the oklab() color.
BGets or sets the b axis channel of the oklab() color.
LGets or sets the lightness channel of the oklab() color.

Gets or sets the a axis channel of the oklab() color.

public CssColorChannel A { get; set; }

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

public CssColorChannel Alpha { get; set; }

Gets or sets the b axis channel of the oklab() color.

public CssColorChannel B { get; set; }

Gets or sets the lightness channel of the oklab() 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