Skip to main content

Variable: DEFAULT_ELECTROSTATIC_COLORS

const DEFAULT_ELECTROSTATIC_COLORS: string[]

Defined in: src/mobjects/molecular/residueProperties.ts:69

Default diverging ramp for a continuous charge or electrostatic surface, low to high: negative blue, neutral white, positive red. This is the convention MolecularSurface uses for colorBy: 'charge' | 'electrostatic'.

Note: this matches the task convention (red is positive). Some molecular viewers (PyMOL, APBS) use the opposite hue for potential; pass a custom colorRamp to flip it.