Methods
(static) randomColor(type, opacity) → {string}
Returns a random color with given properties.
Parameters:
Name | Type | Description |
---|---|---|
type |
'rgba' | 'hex' | 'rgb' | the type of the color |
opacity |
number | a value between 0 and 1, use -1 to omit opacity on hex colors |
- Source:
Returns:
rgba(${number}, ${number}, ${number}, 1)
- Type
- string