Type Definition libnotcurses_sys::NcPalette[][src]

type NcPalette = ncpalette;
Expand description

NcPalette structure consisting of an array of 256 NcChannels.

See also NcPaletteIndex.

Some terminals only support 256 colors, but allow the full palette to be specified with arbitrary RGB colors. In all cases, it’s more performant to use indexed colors, since it’s much less data to write to the terminal. If you can limit yourself to 256 colors, that’s probably best.

type in C: ncncpalette (struct)

Implementations

New NcPalette.

C style function: ncpalette_new().

Frees this NcPalette.

C style function: ncpalette_free().

Attempts to configure the terminal with this NcPalette.

C style function: ncpalette_use().

Returns the NcComponents from the NcChannel in this NcPalette.

C style function: ncpalette_get_rgb().

Extracts the NcComponents from an NcChannel entry inside this NcPalette, and returns the NcChannel.

C style function: ncpalette_get_rgb().

Sets the NcRgb value of the NcChannel entry inside this NcPalette.

C style function: ncpalette_set().