LoginLogin

Palette array argument in GLOAD

Root / Programming Questions / [.]

MZ952Created:
GLOAD [X,Y,Width,Height,] Image array, Palette array, Copy mode (<2/2) How does the palette array argument of GLOAD work?

the numbers in the image array correspond to locations in the palette array. so if your image array is [2,0,2,1] and the palette is [#RED,#YELLOW,#GREEN], then the result is #GREEN,#RED,#GREEN,#YELLOW.

I think I understand it, thank you!