<static> RGBtoString(r, g, b, a, prefix) → {string}
Converts the given color values into a string.
If prefix was '#' it will be in the format #RRGGBB
otherwise 0xAARRGGBB
.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
r | number | The red color component, in the range 0 - 255. | ||
g | number | The green color component, in the range 0 - 255. | ||
b | number | The blue color component, in the range 0 - 255. | ||
a | number | <optional> | 255 | The alpha color component, in the range 0 - 255. |
prefix | string | <optional> | '#' | The prefix used in the return string. If '#' it will return |
Returns
string -
A string containing the color values. If prefix was '#' it will be in the format #RRGGBB
otherwise 0xAARRGGBB
.
- Source code: utils/Color.js (Line 516)
Please login to continue.