CssHwb Class

hwb() (https://drafts.css-houdini.org/css-typed-om-1/#csshwb).

public sealed class CssHwb : CssColorValue
Inheritance
CssColorValue CssHwb

Constructors

NameDescription
CssHwb(CssNumericValue, CssNumberish, CssNumberish, CssNumberish?)https://drafts.css-houdini.org/css-typed-om-1/#dom-csshwb-csshwb

CssHwb(CssNumericValue, CssNumberish, CssNumberish, CssNumberish?)

CssColorValue.cs

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

public CssHwb(CssNumericValue h, CssNumberish w, CssNumberish b, CssNumberish? alpha = null)

Properties

NameDescription
AlphaGets or sets the alpha (opacity) channel of the hwb() color.
BGets or sets the blackness channel of the hwb() color.
HGets or sets the hue channel of the hwb() color.
WGets or sets the whiteness channel of the hwb() color.

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

public CssNumberish Alpha { get; set; }

Gets or sets the blackness channel of the hwb() color.

public CssNumberish B { get; set; }

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

public CssNumericValue H { get; set; }

Gets or sets the whiteness channel of the hwb() color.

public CssNumberish W { 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