1 decade ago by Harley
Hello,
I want to apply a greyscale filter to an entity (to denote it as disabled).
After some googling I noticed that it's possible to do this by directly manipulating the canvas pixels.
Has anyone tried to do this before? Is it just going to be a matter of grabbing the image from the animation sheet in the entity and manipulating the pixels from there?
I don't want to do this with jQuery and I don't want to export a greyscale version of my image - this needs to happen on the fly in canvas.
Thanks for all your help.
I want to apply a greyscale filter to an entity (to denote it as disabled).
After some googling I noticed that it's possible to do this by directly manipulating the canvas pixels.
Has anyone tried to do this before? Is it just going to be a matter of grabbing the image from the animation sheet in the entity and manipulating the pixels from there?
I don't want to do this with jQuery and I don't want to export a greyscale version of my image - this needs to happen on the fly in canvas.
Thanks for all your help.