The Color Editor allows colors to be created interactively. There are several ways to start the Color Editor, a tool in the Inspectors category. Clicking a color well opens the Color Editor (if it is not already open) and activates the well so that it reflects any color changes within the Color Editor. The border of the color well turns white to signify activation. The color defined in the Color Editor can be applied to any color well in an open Chimera panel by dragging and dropping with the mouse. The defined color can also be referred to as colorpanel or fromeditor in the commands color, colordef, ribcolor, and modelcolor.
A color may be defined in the RGB, HLS, HSV, CMYK, or Gray (grayscale) Color space, and may include transparency (opacity < 1). In the RGB color space, for example, there are sliders for the red, green, and blue components, each ranging from 0 to 1. If the small box marked Opacity is clicked, a slider for the opacity value also appears. The range of color in the bar under each slider is adjusted to show what color would result from moving that slider to a particular position in the bar while leaving the other sliders in place. The resulting defined color is shown in the top part of the Color Editor and applied to the items described by the receiving color well (active color well or drag/drop target color well).
The Color name field shows a Tk color code consisting of "#" and 12 digits, 4 each for the red, green and blue (RGB) components of a color. Each component is expressed as a hexadecimal number (allowable characters 0123456789abcdef) ranging from 0000 (0 in the decimal system) to ffff (65,535 in the decimal system). The Tk code reflects the RGB definition of the color shown at the top of the Color Editor, regardless of the Color space setting. Tk color codes always start with "#," but the number of following digits may vary. If 3 in total, then there is 1 digit per color component with f meaning saturation; if 6 total, there are 2 digits per component with ff meaning saturation (and so on). A Tk color code does not include transparency/opacity information.
The Color Editor can be set to one of the built-in colors by typing the name into the Color name field and hitting return. The field will then revert to the corresponding Tk code.
Clicking the No Color button deletes the color assignments of the items described by the active color well. The ultimate result depends on the situation, because visible color is determined by a hierarchy. Assigning "no color" at an overriding level reveals the colors at the next level in the hierarchy. For example, individual atom and bond colors overrule color assigned at the model level; if "no color" is assigned to a set of atoms, they will assume their model-level colors.
The bar of rectangles near the the bottom of the Color Editor serves as a palette. Colors defined in the top can be dragged to the palette slots and will remain throughout the session, even if the tool is closed and later reopened. Clicking on the desired color in the palette makes it the currently defined color.
The Help button brings up this manual page in a browser window. Close dismisses the Color Editor.