| Directives |
|
| Formats | 1.
Read
Palette: VIDEO_PALETTE
READ var$[,ERR=stmtref] 2. Change Palette: VIDEO_PALETTE string$[,ERR=stmtref] 3. Read Palette Indexed Table: VIDEO_PALETTE INDEXED READ var$[,ERR=stmtref] 4. Change Palette Indexed Table: VIDEO_PALETTE INDEXED string$[,ERR=stmtref] Where
|
|||||||
| Description | ProvideX
supplies a 16-colour video palette with direct access to
the standard 16 colours provided by Windows. Use the VIDEO_PALETTE directive to modify the 16-colour video palette in ProvideX. |
|||||||
| Format 1 | Read Palette
Use this format to read the current settings of the video palette. The video palette consists of a string of 16 3-byte entries, where each byte defines the intensity of the colours Red, Green and Blue. For example, the 3-byte entry for bright (foreground) green is $00FF00$, magenta is $FF00FF$ ... VIDEO_PALETTE READ X$ will return you the following defaults in a single string:
The string is only punctuated by spaces to show you the sixteen 3-byte entries. |
|||||||
| Format 2 | Change Palette
Use this format to change/reset the video palette, as in VIDEO_PALETTE X$ where X$ contains your new values. |
|||||||
| *Note* | Changing the palette may not work on all systems. This depends on the colour capabilities of the PC hardware. | |||||||
| Format 3 | Read Palette Indexed
Table
There is also an indexed table to reference the video palette. This index table consists of 48 entries: six 8-byte tables, where each byte represents an index into the video palette described above:
|
|||||||
| Format 4 | Change Palette Indexed
Table
Use this format to change/reset the video palette index table, as in VIDEO_PALLETTE INDEXED X$ where X$ contains your new values. |
|||||||