CssHwb Class
hwb() (https://drafts.css-houdini.org/css-typed-om-1/#csshwb).
public sealed class CssHwb : CssColorValue- Inheritance
CssColorValueCssHwb
Constructors
| Name | Description |
|---|---|
| CssHwb(CssNumericValue, CssNumberish, CssNumberish, CssNumberish?) | https://drafts.css-houdini.org/css-typed-om-1/#dom-csshwb-csshwb |
CssHwb(CssNumericValue, CssNumberish, CssNumberish, CssNumberish?)
CssColorValue.cshttps://drafts.css-houdini.org/css-typed-om-1/#dom-csshwb-csshwb
public CssHwb(CssNumericValue h, CssNumberish w, CssNumberish b, CssNumberish? alpha = null)Parameters
See also
Properties
| Name | Description |
|---|---|
| Alpha | Gets or sets the alpha (opacity) channel of the hwb() color. |
| B | Gets or sets the blackness channel of the hwb() color. |
| H | Gets or sets the hue channel of the hwb() color. |
| W | Gets or sets the whiteness channel of the hwb() color. |
Alpha
CssColorValue.csGets 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
| Name | Description |
|---|---|
| ToString() | The serialization of the value (https://drafts.css-houdini.org/css-typed-om-1/#stylevalue-serialization). |