You can access the current palette in the VRAM using peek()/poke() API functions.
Here is an example https://github.com/nesbox/TIC-80/wiki/Sample-RGB-Color-RAM-Address
You can access the current palette in the VRAM using peek()/poke() API functions.
Here is an example https://github.com/nesbox/TIC-80/wiki/Sample-RGB-Color-RAM-Address