Sets palette colors, line styles, and patterns.
#include <pgchart.h>
short __far _pg_setpalette( _paletteentry __far *palette );
palette | Pointer to first palette structure in array |
The _pg_setpalette function sets palette colors, line styles, fill patterns, and plot characters for all palettes. The pointer palette points to an array of palette structures that contain the desired palette values.
The palette used by the presentation-graphics routines is independent of the palette used by the low-level graphics routines.
The _pg_setpalette function returns 0 if there were no errors. If the new palettes are not valid, the value _BADSCREENMODE is returned.
Standards:None
16-Bit:DOS
32-Bit:None
_pg_defaultchart, _pg_getpalette, _pg_initchart, _pg_resetpalette
See the example for _pg_getpalette.