I've managed to get color clash working without having to futz with shaders, but it only works with 8x8 sprites right now. Instead of having the color on the sprites, I made the sprites transparent and put the color on a layer behind them. Then I had the player (and in theory, it would work with any object that can move) manipulate colored tiles on another layer (above the sprite color layer but below the sprites) using modulo so that they snap. (gif down below)
Viewing post in ZX Spectrum Adventure Game Template comments
thank you! Btw, I didn't mean it only works on 8x8 sprites or multiples of 8x8. At the moment, it only works with configurations of one single 8x8 sprite. Larger configurations of 8x8 sprites (like the player in your project) have larger minimum and maximum numbers of tiles they could intersect with, requiring more calculations and more tiles to be spawned on the color layer. I haven't figured out a way to automate that, so I have to calculate and manually edit each object that would have to cause clash.