Palettes

Last Modified: 1/14/2021

Changes the color of one palette entry.

Arguments

NameTypeRequiredDescription
PaletteData Line Label Yes The location of your color data.
PalIndex Integer Yes The palette index you want to update. Valid values are 0 to 3
StartIndex Integer Yes The color index you want to begin with.
Count Integer Yes The number of colors to load.
Offset Integer No The number of bytes to offset the PaletteData by.

Example

Syntax: Palettes <PaletteData>, <PalIndex>, <StartIndex>, <Count> [, <Offset>]
    Palettes MyPal,0,0,16
    
MyPal:
    DataInt $0EEE,$0CCC,$0000,$0000,$0000,$0000,$0000,$0000
    DataInt $0000,$0000,$0000,$0000,$0000,$0000,$0000,$0000

See Also

Palette