InitPalette()

Syntax

Result = InitPalette(#NumPaletteMax)

Description

Init all the Palette environments for later use. You must put this function at the top of your source code if you want to use the Palette commands. If Result is equal to 0, it has failed and none of the palette commands can be used. On Linux, if it fails, it's probably because SDL 1.2.0 isn't found.

#NumPaletteMax: Maximum number of Palettes to handle.

Supported OS

Windows, AmigaOS, Linux

Palette - Index