Function: cpkColor()
cpkColor(
element,overrides?):string
Defined in: src/mobjects/chemistry/cpkColors.ts:68
Resolve the color for an element.
The lookup order is: caller overrides, then the CPK palette, then the default color. Overrides are matched on the canonical symbol.
Parameters
element
string
The element symbol (any case).
overrides?
Record<string, string>
Optional per-element color overrides.
Returns
string
The hex color string.