Skip to main content

Function: organelleColor()

organelleColor(name, overrides?): string

Defined in: src/mobjects/biology/biologyColors.ts:98

Resolve the color for an organelle.

The lookup order is caller overrides, then the organelle palette, both by lowercase name. An unknown organelle falls back to the default color.

Parameters​

name​

string

The organelle name.

overrides?​

Record<string, string>

Optional per-name color overrides.

Returns​

string

The hex color string.