ColorCode and Color
Some objects (Peaks and SpinLinks in CARA can be colored using the Color and ColorCode properties. Somewhat confusingly, Color is an integer, and ColorCode is the actual color associated with that integer.
The ColorCode (an actual color) associated with a given Color (integer) can currently only be set in the PeakList? navigator displayed within MonoScope.
How to define the ColorCode associated with a given Color:
- Open a spectrum with MonoScope (open with the PeakList? directly, or open/import/create (Peak pick) a peaklist after opening the spectrum)
- Display the PeakList? (View-Show List or shortcut 'pl')
- Right-click on a peak in the list and select "Set Color".
- Enter an integer if desired, or leave unchanged and return. All peaks with Color = this integer will have the same ColorCode.
- Right-click on the peak in the PeakList? and select "Set ColorCode"
- A color palette will open. Click on the desired color and click OK.