---
name: "ggiSetColorfulPalette"
section: "3ggi"
platform: "linux"
package: "libggi2-dev"
version: "1:2.0.1-2"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/ggiSetColorfulPalette/3ggi"
---

# ggiSetColorfulPalette(3ggi)

Set a palette with a full range of all colors

## NAME

ggiSetColorfulPalette - Set a palette with a full range of all colors

## SYNOPSIS

**#include \<ggi/ggi.h\>**

**int ggiSetColorfulPalette(ggi\_visual\_t** *vis***);** .SH "DESCRIPTION"

LibGGI guarantees that there will be a default palette when a palettized mode is set. What this default is, however, is 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. Negative values indicate error (codes).

## SEE ALSO

[**ggiSetPalette**(3)](/ggiSetPalette/3.md)
