Compare to Chimera1 color specification.


Chimera2 logo

Command-Line Color Specification

The CSS color names are used, with the addition that multiword names may contain spaces. Colors can also be given in the CSS hex format and the rgb (red, green, blue), rgba (red, green, blue, opacity), hsl (hue, saturation, lightness), hsla (hue, saturation, lightness, opacity), and gray function formats.

The following all specify the same color:

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

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