This isn't fully pixi related, but I'm looking to swap colors, limit color palette in images. I've had some success blindly painting color palettes and using Color Map Filter but I have no idea how it actually works.
Can someone point me in the right direction? How would I go about making a color palette that for example limits image's colors to 32 given ones?
https://pixijs.io/pixi-filters/docs/PIXI.filters.ColorMapFilter.html
I was able to copy some shaders from shadertoy that also manipulate colors, but for my use case dynamically calculated/painted color map seems like the best solution.