Language:
Русский
English
SetRGBPalette (procedure) (Graph unit)
Modifies palette entries for the IBM 8514 and VGA drivers.
Declaration
procedure SetRGBPalette(ColorNum, RedValue, GreenValue, BlueValue: Integer);
Target
Real, Protected
Remarks
ColorNum defines the palette entry to be loaded, while RedValue, GreenValue, and BlueValue define the component colors of the palette entry.
For the IBM 8514 display, ColorNum is in the range 0..255. For the VGA in 256K color mode, ColorNum is in the range 0..15. Only the lower byte of RedValue, GreenValue or BlueValue is used, and out of this byte, only the 6 most-significant bits are loaded in the palette.
Restrictions
SetRGBPalette can be used only with the IBM 8514 driver and the VGA.