new ColorService()
Service for providing and selecting colors for participants.
- Source
Methods
getRandom(alreadyUsedColors) → {string}
Get a random color not already used.
Parameters:
| Name | Type | Description |
|---|---|---|
alreadyUsedColors | Array | Array of colors already used |
- Source
Returns:
A random color string
- Type:
- string