Also you can use cartridge metadata to init palette https://github.com/nesbox/tic.computer/wiki#cartri...
Try to add the code to initialize pico palette in the correct order
-- pal: 0000001d2b537e2553008751ab52365f574fc2c3c7fff1e8ff004dffa300ffec2700e43629adff83769cff77a8ffccaa
Interesting idea btw
Thanks