CRGB
StarCraft: Remastered's player colours. For each of Players 1 to 8, how its colour is
chosen, and a colour of its own. The RGB value is used only when the mode is Custom; with
Palette the game uses the COLR colour, which is also what every older version
reads.
| Name | CRGB (43 52 47 42) |
|---|---|
| Size | 32 bytes. |
| Read by | The game. |
| Required | No. |
| More than one copy | Only the last copy counts. |
| In scmJS | Read, and written again when you change what it holds. |
Layout:
| Offset | Type | Holds |
|---|---|---|
| 0 | u8 × 24 | Red, green and blue for each of Players 1 to 8, three bytes each |
| 24 | u8 × 8 | How each player's colour is chosen (modes, below) |
Colour modes:
| Value | Meaning |
|---|---|
| 0 | Random |
| 1 | Player choice |
| 2 | Custom |
| 3 | Palette |