In a design table, you can calculate the 32-bit integer value for a color by using the values of the red, green, and blue components of the color.
To apply a different color to each configuration, display states must be linked to configurations. Before configuring color, select
Link Display States to Configurations at the bottom of the ConfigurationManager
tab.
To calculate a color value in a design table:
- In the design table, type $USER_NOTES in cells B2, C2, and D2, and type $COLOR in cell E2. The column header is not case sensitive.
You may have to insert columns so that these parameters appear in cells B2 through E2.
- Type integers in cells B3, C3, and D3 for the red, green, and blue components of a color. The values must be stored as numbers, not text.
- Type the following formula in cell E3:
= MAX(MIN(B3,255),0) + MAX(MIN(C3,255),0)*16*16 + MAX(MIN(D3,255),0)*16*16*16*16
Make sure there are no extra spaces before the = sign in the cell.
The formula ensures that each component value is between zero and 255.
- Type other color components in the appropriate rows and copy the formula, adjusted for the row number, into the corresponding cells in column E.