Quantcast
Channel: How do I draw transparent PNGs onto a canvas in Firefox? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

How do I draw transparent PNGs onto a canvas in Firefox?

$
0
0

I've been setting up a small framework for rendering positionable and animated graphics onto a <canvas> element - primarily to help my understanding of it.

I downloaded a random sprite sheet off the internet for testing - it has a transparent background which seems to render fine in Chrome, on my iPhone and Safari.

This is the demo: http://martywallace.com/simplecanvas/

In Firefox however the transparent sections of the sprite load as white, which ends up looking like this:

enter image description here

Is there a Firefox-specific way to enable transparency, or is it not supported?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images