Constructor
new Color(components)
Parameters:
| Name | Type | Description |
|---|---|---|
components |
number | string | RGBA values or hex expression |
- Source:
Methods
colorWithAlpha(alpha) → {Color}
Get the color of this color with modified alpha.
Parameters:
| Name | Type | Description |
|---|---|---|
alpha |
number |
- Source:
toString() → {string}
Get a hexadecimal string that can be applied to CSS
- Source:
toStringWithAlpha() → {string}
Get an RGBA string that can be applied to CSS
- Source: