I have a spritesheet image made up of 16*16 tiles. I already have a good loading system and I have handled drawing them without losing the aspect ratio. The problem is that I want to get a 16 * 16 tile of that sheet, copy it, and change the hue of the new image by some amount.
I think I have copying working, but here is all my code
let temp = document.createElement('canvas').getContext('2d');
temp.drawImage('spritesheet.png',0,0)
let pixels = temp.getImageData(0, 0, 16,16);
//manipulate them so that the hue is changed (can't find code for)
let Shifted = new Image();
Shifted.src = temp.canvas.toDataUrl("image/png");