Quantcast
Channel: Invert alpha value of a canvas image - Stack Overflow
Browsing all 2 articles
Browse latest View live

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 Article



Image may be NSFW.
Clik here to view.

Invert 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
Browsing all 2 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>