set_sprpal

From ArchaicPixels: HuC and PCEAS Documentation

Jump to: navigation, search

set_sprpal(char pal_num, int *pal);
set_sprpal(char pal_num, int *pal, int nb_pal);

     Exactly the same function has load_palette(),
     but this function offers direct access to sprite
     palette-blocks. Sprite palette-blocks are
     standard block number 16 to 31, but with this function
     you can simply access them with indexes 0 to 15.
     This function and set_bgpal() function make sprite
     and character palette-blocks manipulation easier;
     with them you don't have to know the real block indexes.
     Without the third arguments, the function loads
     only one block.
Personal tools