Previous: 4.37.2.107. SetNormalMode procedure To the Table of Contents Next: 4.37.2.109. SetRGBPalette procedure
4.37.2.107. SetNormalMode procedure Table of Contents 4.37.2.109. SetRGBPalette procedure

- 4.37.2.108. -
Table of Contents
4. Standard Units
4.37. Graph - Graph unit
4.37.2. Graph Unit Procedures and Functions
4.37.2.108. SetPalette procedure


4.37.2.108. 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: 4.37.2.107. SetNormalMode procedure To the Table of Contents Next: 4.37.2.109. SetRGBPalette procedure
4.37.2.107. SetNormalMode procedure Table of Contents 4.37.2.109. SetRGBPalette procedure

- 4.37.2.108. -