Answer by Leonid for Invert alpha value of a canvas image
We can use globalCompositeOperation to invert the color with alpha.Source image with radial gradient.Result image with inverted alpha.Checking the result: drawing result image on top of yellow...
View ArticleInvert alpha value of a canvas image
What is the best way to invert the alpha channel of a canvas' content?I have seen solutions such as this one where you can go through pixel-by-pixel and re-map the alpha value, but this is an expensive...
View Article
More Pages to Explore .....