CssOkLch Class
oklch() (https://drafts.css-houdini.org/css-typed-om-1/#cssoklch).
public sealed class CssOkLch : CssColorValue- Inheritance
CssColorValueCssOkLch
Constructors
| Name | Description |
|---|---|
| CssOkLch(CssColorChannel, CssColorChannel, CssColorChannel, CssColorChannel?) | https://drafts.css-houdini.org/css-typed-om-1/#dom-cssoklch-cssoklch |
CssOkLch(CssColorChannel, CssColorChannel, CssColorChannel, CssColorChannel?)
CssColorValue.cshttps://drafts.css-houdini.org/css-typed-om-1/#dom-cssoklch-cssoklch
public CssOkLch(CssColorChannel l, CssColorChannel c, CssColorChannel h, CssColorChannel? alpha = null)Properties
| Name | Description |
|---|---|
| Alpha | Gets or sets the alpha (opacity) channel of the oklch() color. |
| C | Gets or sets the chroma channel of the oklch() color. |
| H | Gets or sets the hue channel of the oklch() color. |
| L | Gets or sets the lightness channel of the oklch() color. |
Alpha
CssColorValue.csGets or sets the alpha (opacity) channel of the oklch() color.
public CssColorChannel Alpha { get; set; }Property value
See also
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
| Name | Description |
|---|---|
| ToString() | The serialization of the value (https://drafts.css-houdini.org/css-typed-om-1/#stylevalue-serialization). |