Function

getPresetColor

Generates a random color value from the predefined list of aesthetic presets. Used when creating new clips, markers, or dynamic color selections.

Signature

Type Definition
getPresetColor(seed: number): string

Parameters

NameTypeDescription
seednumberNumeric seed used to choose a stable preset.

Returns

string

A HEX color string (e.g., '#ef4444').