Syntax
int GtGetPalette( int index );
Arguments
index selects one of the 16 text palette entries, numbered 0 through 15.
Return value
The palette entry in 0x00BBGGRR format, or 0 when no value is supplied.
Description
Use GtSetPalette() to write the same format. The least significant byte is red, followed by green and blue.
Example
#include "xdev-wtui.h"
#include <stdio.h>
int main( void )
{
printf( "Palette entry 7: %06X\n", ( unsigned int )GtGetPalette( 7 ) );
return 0;
}