Previous: SetNormalMode procedure To the Table of Content Next: SetRGBPalette procedure

- 4.37.2.108 -
Standard Units
Graph Unit
Graph Unit Procedures and Functions

SetPalette procedure

Targets: MS-DOS, Win32


Graph Unit

Changes one palette color as specified by ColorNum and Color.

Declaration:
procedure SetPalette(ColorNum: Word; Color: Word);
Remarks:

Changes the ColorNum entry in the palette to Color. SetPalette (0, clLightCyan) makes the first color in the palette light cyan. ColorNum can range from 0 to 255 and works only in 256-colored (palette) modes. If an invalid input is passed to SetPalette, GraphResult returns a value of grError, and the palette remains unchanged.


Previous: SetNormalMode procedure To the Table of Content Next: SetRGBPalette procedure
SetNormalMode procedure Table of Content SetRGBPalette procedure

- 4.37.2.108 -