Skip to main content

Function: randomBrightColor()

randomBrightColor(seed?): string

Defined in: src/utils/color.ts:218

Return a random bright color: a random palette color averaged with white.

Ports random_bright_color (0.5 * (rgb + 1)). A seed makes it deterministic, like randomColor.

Parameters​

seed?​

number

Returns​

string