Built-In Namespace _global_
| Method Attributes | Method Name and Description |
|---|---|
|
toCSS()
Get a valid CSS color representation of the color without an
alpha value.
|
|
|
Get a valid CSS color representation of the color, including
the alpha value.
|
|
|
toHex()
Get the standard RGB hex representation of the color.
|
Method Detail
{String}
toCSS()
Get a valid CSS color representation of the color without an
alpha value.
Defined in: RGB.js.
Defined in: RGB.js.
- Returns:
- {String} The CSS color string, e.g. "rgb(123, 2, 202)"
{String}
toCSSWithAlpha()
Get a valid CSS color representation of the color, including
the alpha value.
Defined in: RGB.js.
Defined in: RGB.js.
- Returns:
- {String} The CSS color string, e.g. "rgba(123, 2, 202, 0.253)"
{String}
toHex()
Get the standard RGB hex representation of the color.
Defined in: RGB.js.
Defined in: RGB.js.
- Returns:
- {String} The hex string, e.g. "#f681df"