-loadpal now loads a palette from disk and returns it in a table.

-setpal sets a palette from a table as the current palette.
This commit is contained in:
2022-10-05 18:51:26 +02:00
parent 8415841c5c
commit 035d82c1ec
3 changed files with 184 additions and 136 deletions

3
mini.h
View File

@@ -122,7 +122,8 @@ void setmap(uint8_t surface);
void cls(uint8_t color=0);
void color(uint8_t color=6);
void loadpal(const char* filename);
uint32_t *loadpal(const char* filename);
void setpal(uint32_t *pal);
void setcolor(uint8_t index, uint32_t color);
uint32_t getcolor(uint8_t index);
void settrans(uint8_t index);