ggiSetColorfulPalette(3)

ggiSetColorfulPalette3

Set a palette with a full range of all colors

Usage

#include <ggi/ggi.h>
int ggiSetColorfulPalette(ggi_visual_t vis);

Overview

LibGGI guarantees that there will be a default palette when a palettized mode is set. What this default is, however, dependent on the visual. For example, the X target deliberately avoids setting all colors to avoid color-flashing when moving between windows.

Applications that want to ensure that they have a full scale of all colors can call ggiSetColorfulPalette after mode set. This function uses a smarter color allocation scheme, causing good colors but still minimal flashing in windowed targets.

Return value

ggiSetColorfulPalette returns the number of the first entry changed. <0 indicate a ggi-error(3).

Releases

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From libggi2-dev 1:2.2.2-5 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.