Dynamically changing the colours of parts of a raster image (not SVG) using HTML/CSS or something else?

Do you have an example of such? And is that free?