Chimera2 logo

Command-Line Color Specification

Colors can be specified in commands with:

Color names from CSS or colordef can be truncated, with ambiguous truncations going to the shortest of the matching full color names.

Examples

The following all specify the same color:

red
#f00
#0xff0000
rgb(255, 0, 0)
rgb(1.0,0,0)
rgb(100%, 0, 0)
rgba(100%, 0, 0, 1)
hsl(0, 100%, 50%)
The following specify the same shade of gray:
gray(128)
gray(50%)

UCSF Resource for Biocomputing, Visualization, and Informatics / September 2015