SecondBASIC Documentation v3

Home / Command Reference / Palette

Palette

Description: Changes the color of one palette entry.

Syntax:

Palette <RgbColorCode>, <Palette>, <Index>

Part Description
<RgbColorCode> Required. Color code. This can be either from the Rgb() function or by using the hex value.
<Palette> Required. This is the palette number to change. Valid number range is 0 to 3.
<Index> Required. Color index of the palette to change. Valid number range is 0 to 15.

Example:

    Palette Rgb(7,7,7), 0, 0
    Palette &hEEE, 0, 0