SecondBASIC Documentation v3

Home / Command Reference / Palettes


Description: Loads more than one color into CRAM.


Palettes <PaletteLabel>, <Palette>, <Index>, <Count> [, <Offset>]

Part Description
<PaletteLabel> Required. This is the line label where the palette data is located. This can also be a long variable that had an address stored in it from the LblPtr&() function.
<Palette> Required. Palette number to alter. Valid number range is 0 to 3.
<Index> Required. Color index of the palette to start. Valid number range is 0 to 15.
<Count> Required. Number of colors to load from the <PaletteLabel>.
<Offset> Optional. Offset from the <PaletteLabel> to start from.


    Palettes MyPal, 0, 0, 16
    DataInt $0EEE,$0CCC,$0000,$0000,$0000,$0000,$0000,$0000
    DataInt $0000,$0000,$0000,$0000,$0000,$0000,$0000,$0000