Purpose
Opcode format | Opcode
[ASCII] (Hex) |
Operand Format | Comments |
Single-byte, readable operand | [C] (43) | [<ws>]<IIndex> | Specifies an indexed color. |
Single-byte, binary operand | [c] (63) | <BIndex> | Specifies an indexed color. |
- | [Ctrl-C] (03) | <BR><BG><BB><BA> | Specifies an RGBA color |
Extended ASCII | (Color | <ws><IR>,<IG>,<IB>,<IA>[<ws>]) | Specifies an RGBA color. |
R, G, B, A Defines a color by the red, green, blue, and alpha components
When directly specifying a color, the legal range for the intensity integers (or bytes) is from 0 (indicating zero intensity) to 255 (indicating full intensity). A zero intensity alpha indicates that this color is totally transparent (not actually drawn) so that the background is unchanged. A full intensity alpha (255) indicates that this color is completely opaque, such that the color fully overwrites its background. Alpha values between 0 and 255 indicate that, when the color is drawn, it is blended to a varying degree with the background color.
When indirectly specifying a color using a color index, a full RGBA color is retrieved from the indexth position in the currently active Color Map—see the Set Color Map function.
In the case that an illegal index is selected (one that is less than zero or exceeds one less than the number of colors in the active color map), the color selected is decided by the file reading application.