The color values specified with GpiSetAttrs and GpiSetColor also can be specified directly as RGB values rather than as indexes. To enable this, the logical color table must be switched into RGB mode by calling GpiCreateLogColorTable, specifying a format of LCOLF_RGB. (No color array is passed.)
If the color table is in RGB mode, it can be switched back to index mode and reset to its original default values by specifying either LCOLF_INGRGB or LCOLF_CONSECRGB in GpiCreateLogColorTable.