DEMO version ! After registering you will receive a complete version.

Description


This function lets you change the palette in 16 and 256 color modes.
A color in 16 or 256 color modes is defined by its Red, Green and Blue
value. You can change these Red, Green and Blue values with this function.
It must be called for each of the available colors if you want to change
the entire palette.
If only one parameter is passed, the current RGB values of that color
are returned. If that parameter is -1, the standard palette is loaded.

This function can be used only if you have set the screen to a graphic mode
using FGLSetMode().


Syntax


FGLSetPal(< Color >[,< Red >,< Green >,< Blue >]) -> oldPalette