Skip to main content

Function: randomColor()

randomColor(seed?): string

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

Return a random color from the Manim palette. Ports random_color.

With a seed the choice is deterministic (the same seed always returns the same color), which keeps a scene reproducible; without one it is random.

Parameters​

seed?​

number

Returns​

string