SecondBASIC Documentation v3

Home / Function Reference / Palette()

Palette()

Description: Changes the palette number of the tile being drawn.

Syntax:

Palette(<index>)

Part Description
<index> Required. The palette number to apply to the tile being drawn. The <index> range is from 0 to 3.

Example:

        Palettes DemoPal,2,0,2
        DrawTile 1+Palette(2),0,0
 
DemoPal:
        DataInt $0000,$000E