Query for current color palette
int PgGetPalette(PgColor_t *palette);
This function queries the graphics driver for the current palette. A palette is an array of _Pg_MAX_PALETTE (256) RGB colors. The palette parameter must be a pointer to a suitably-sized array, which will be filled with the color values representing the current palette.
This function is useful for graphical image utilities such as pv, which can perform improved dithering with knowledge of the graphics palette.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |