As suggested by @Paulie_D canvas is probably the way forward.
However, you might be able to create a similar effect using css3 filters, particularly
hue-rotate. Here’s an example I found on Codepen.
Incase you decide to tackle this using canvas here’s the MDN documentation on the Canvas API: https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API
… and the support table for css3 filters (hue rotate): http://caniuse.com/#feat=css-filters
I hope this was helpful.