HIDDEN_PALETTE


PICO-8 has 16 extra colors that are undocumented and a bit tricky to access.

This means we actually have 32 colors to choose from and you can set your own 16 color palette using a mix of them both.

Using the palette swapping function, you can change a default color with a hidden color but you must set the last argument to 1.

 pal( current color, new color, 1 )

This accesses the PICO-8 memory and sets the color palette to change. Do this to see the code below.

poke( 0x5f2e, 1 )

Swap the full palette using a mix of default and hidden color numbers in a table of 16 color numbers and the second argument set to 1.

pal( {1,2,3...} ,1 )

Swap all of the default colors to the hidden colors.

pal( {[0]=128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143}, 1 )

1329

9 Mar 2023

Font