This variable is typically used when a character-based application is moved to a graphical environment. Use the COLOR_MODEL setting to perform uniform changes to your program's color scheme. These changes are represented by rules that act on your colors. An example of a rule is "exchange the foreground and background colors". Use COLOR_MODEL to change your color scheme in a global way.
The default color model is model 0. It causes no changes to occur to your color scheme. The remaining 10 models are 1 through 10.
Each color model is actually a composite; it's the equivalent of two or more configuration file variable settings:
COLOR_MODEL | Equivalent Configuration File Variable Settings |
---|---|
"1" | COLOR_TRANS "5"
INTENSITY_FLAGS "34" BACKGROUND_INTENSITY "1" |
"2" | COLOR_TRANS "4"
INTENSITY_FLAGS "34" BACKGROUND_INTENSITY "1" |
"3" | COLOR_TRANS "3"
INTENSITY_FLAGS "34" |
"4" | COLOR_TRANS "1"
INTENSITY_FLAGS "34" |
"5" | COLOR_TRANS "1"
INTENSITY_FLAGS "129" |
"6" | COLOR_TRANS "1"
INTENSITY_FLAGS "129" BACKGROUND_INTENSITY "2" |
"7" | COLOR_TRANS "3"
INTENSITY_FLAGS "161" |
"8" | COLOR_TRANS "1"
INTENSITY_FLAGS "161" |
"9" | COLOR_TRANS "3"
INTENSITY_FLAGS "193" |
"10" | COLOR_TRANS "1"
INTENSITY_FLAGS "193" |
For more information, see Color Mapping in ACUCOBOL-GT User Interface Programming.