Skip to content

Color

Coloring schemes for molecular structures.

Shortcut

/color <scheme_or_color> [selection]

Commands

/color color

Apply a solid color to a selection.

/color red protein          # Red protein
/color blue ligand          # Blue ligand
/color 0xFF00FF chain A     # Hex color

/color bychain

Color each chain a different color.

/color bychain
/color bychain protein

/color byelement

Color by element (CPK coloring: C=gray, N=blue, O=red, S=yellow).

/color byelement ligand
/color byelement

/color byss

Color by secondary structure (helices, sheets, loops).

/color byss protein

/color bybvalue

Color by B-factor (temperature factor).

/color bybvalue protein

/color spectrum

Rainbow coloring from N-terminus to C-terminus.

/color spectrum protein
/color spectrum chain A

/color carbon

Set carbon color only (keep heteroatom colors).

/color carbon green ligand

/color chainbow

Rainbow coloring per chain.

/color chainbow protein

/color byoccupancy

Color by occupancy values.

/color byoccupancy protein