Previous: 4.51.2.2.13. ogSetPal() To the Table of Contents Next: 4.51.2.2.15. ogSetRGBPalette()
4.51.2.2.13. ogSetPal() Table of Contents 4.51.2.2.15. ogSetRGBPalette()

- 4.51.2.2.14. -
Table of Contents
4. Standard Units
4.51. ObjGfx40 - ObjectGraphics 4.0 Unit
4.51.2. ObjGfx40 Unit Object Types
4.51.2.2. ogDisplay object
4.51.2.2.14. ogSetRGBAPalette()


4.51.2.2.14. ogSetRGBAPalette()

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Sets an entry in the palette.

Declaration:
  procedure ogSetRGBAPalette(colour, red, green, blue, alpha:uInt8); virtual;
Remarks:

Colour defines the palette entry to be set, while red, green, blue, and alpha define the component colours of the palette entry.

The red, green, blue, alpha values are with a range of 0..255, where 0 is minimum and 255 is maximum.

The alpha field is updated in the internal palette, but has no affect on the display.

Modifies the hardware palette with the new entry.

Restrictions:

Palettes are only relevant to 8BPP modes.

See also:


Previous: 4.51.2.2.13. ogSetPal() To the Table of Contents Next: 4.51.2.2.15. ogSetRGBPalette()
4.51.2.2.13. ogSetPal() Table of Contents 4.51.2.2.15. ogSetRGBPalette()

- 4.51.2.2.14. -