Microsoft MakeCode

Changing default palette

I’ve been playing around with changing palettes for the graphics. I have no problem changing the palette at run time but I’d like to be able to switch out the default palette; I’d like to be able to tell what the graphics I’m making actually look like in the new palette.

The documentation makes it sound like I can do this: https://arcade.makecode.com/developer/images (changing the default palette section). However, in practice I don’t seem to be able to do what it says. I don’t have an option under my cogwheel to “edit settings as text”. I have found the settings file when looking through the explorer but the file is locked and can’t be changed. I’ve looked at both the regular and beta versions of the editor.

Does anyone know how to go about changing the default palette?

Ah, the edit settings as text menu item was removed, as editing that file is more dangerous / can break your project. You can still get to the file through the explorer:

Do be careful before changing this file, though; I would make a copy of your project before editing that file (e.g. Share it), in case a typo ends up in there and the project gets into a weird state. (Also worth noting, it doesn’t look like the new sprite editor is loading the palettes quite yet, so if you want to use a custom palette use the live site for now: filed here).

1 Like

Oh nice! Yes, that’s exactly what I was looking for. Thank you very much. And thanks for the warning about backing up the project first. :slight_smile:

If you are on https://arcade.makecode.com/beta, you can use the github integration to “back up” your code.