ColorService

Source: ColorService.ts:8

Service for providing and selecting colors for participants.


Constructor

new ColorService(): ColorService

Instance Methods

getRandom(alreadyUsedColors)

Get a random color not already used.

Parameters

  • alreadyUsedColors — Array of colors already used

Returns

  • A random color string