[{"data":1,"prerenderedAt":35},["ShallowReactive",2],{"tool-palette-swap":3},{"id":4,"title":5,"accent":6,"body":7,"description":13,"extension":21,"image":22,"meta":23,"navigation":24,"order":25,"path":26,"seo":27,"source":28,"stem":29,"tagline":30,"tasks":31,"useWhen":33,"__hash__":34},"tools\u002Ftools\u002Fpalette-swap.md","Palette Swap","#C9A24A",{"type":8,"value":9,"toc":17},"minimark",[10,14],[11,12,13],"p",{},"It counts the sprite's colours, most used first. Keep them all, reduce them to a count (median cut, then k-means in OKLab, weighted by how many pixels use each colour), or snap them to a palette you paste. Lospec .hex, GIMP .gpl and JASC .pal all work.",[11,15,16],{},"Then edit the Swap swatches to recolour; they follow the result palette. Alpha is kept and transparent pixels are left alone. Click a pixel to box everywhere its colour is used. Download PNG is the recoloured sprite.",{"title":18,"searchDepth":19,"depth":19,"links":20},"",2,[],"md","\u002Ftools\u002Fpalette-swap.png",{},true,20,"\u002Ftools\u002Fpalette-swap",{"title":5,"description":13},null,"tools\u002Fpalette-swap","Pull the palette out of a sprite, cut it down or snap it to another one, then recolour.",[32],"palette","You want to recolour a sprite, reduce its colours, or move it onto a Lospec palette.","u6Nxg__dnEORwAl5M7WTVP6rL_LRGuYHugTayDnEzvs",1790507181288]