3 0 0 # The first line has to be a version number: # <Major version> <Minor version> <Release> # No comments are allowed before that first line # blank lines or comments after "#" allowed # decimal or hex numbers are allowed # Number to use for maximum RGB intensity max=256 # for 8 bit, use max=0x10000 for 16 bit columns=10 # number of columns for color palette # Static colors: # "static" name { R G B } # # The first color has index 0, the second color # has index 1 and so on static black { 0 0 0 } static white { 0xff, 0xff, 0xff } # commas are optional static "lt grey" { 240 240 240 } # if name has whitespace, must quote static "lt wheat" { 240 240 210 } static red { 255 0 0 } # index 4 static green { 0 255 0 } # index 5When configuring a widget, the color can be selected by name or picked from a dialog displaying the whole color palette.
rule Rainbow { <0 : red >0 : green default : black }This color will change, depending on the Color Value, from green for positive value over black for zero into red for negative values. The Color Value is provided by the widget. For most widgets it will be the current value of the readback or control PV, some widgets might allow for a separate "Color PV" that can be different from the main PV.
Another example:
# Rule entries can be exact values, # comparisons and boolean combinations. # Conditions to be joined to enhance readability: rule rule1 { # comment 11 : || 12 : || 13 : red 14 : blue 15 : green <2 || >4 : && <7 || >9 : forest default : black }
alarm { disconnected : "Disconn/Invalid" invalid : "Disconn/Invalid" minor : "Monitor: MINOR" major : "Monitor: MAJOR" noalarm : "Monitor: NORMAL" }The specification for the no alarm state may either be a valid color name or "*". In the latter case, the object's foreground color determine the non-alarm color.
menumap { black "light grey" red forest "blink green" }If this option is used, all color names must be explicitly included in the list (if they are to appear in the menu).