Default Logical Color Table

The PM provides a default logical color table, which defines the colors and the indexes that retrieve them, as shown in the following table.

Default Logical Color Table

┌────────────────┬──────┬──────────────────────────────────────┐
│Color Index     │Index │Effect                                │
│                │Number│                                      │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_FALSE       │-5    │All bits are set to 0.                │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_TRUE        │-4    │All bits are set to 1.                │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_DEFAULT     │-3    │Default value                         │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_WHITE       │-2    │White                                 │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_BLACK       │-1    │Black                                 │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_BACKGROUND  │0     │Natural background color for the      │
│                │      │device                                │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_BLUE        │1     │Blue                                  │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_RED         │2     │Red                                   │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_PINK        │3     │Pink                                  │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_GREEN       │4     │Green                                 │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_CYAN        │5     │Cyan                                  │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_YELLOW      │6     │Yellow                                │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_NEUTRAL     │7     │Neutral - The contrasting color to    │
│                │      │CLR_BACKGROUND                        │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_DARKGRAY    │8     │Dark gray                             │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_DARKBLUE    │9     │Dark blue                             │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_DARKRED     │10    │Dark red                              │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_DARKPINK    │11    │Dark pink                             │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_DARKGREEN   │12    │Dark green                            │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_DARKCYAN    │13    │Dark cyan                             │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_BROWN       │14    │Brown                                 │
├────────────────┼──────┼──────────────────────────────────────┤
│CLR_PALEGRAY    │15    │Pale gray                             │
└────────────────┴──────┴──────────────────────────────────────┘

Note: Entries after CLR_PALEGRAY have device-dependent defaults.

PM maps the color index name to the index number (shown in the second column of the previous table), then uses that number to address the appropriate color.


[Back: Logical Color Table]
[Next: Device-Independent Color Indexing]