meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.55k stars 404 forks source link

Layering with PNGs containing transparency #14

Closed adrian3 closed 12 years ago

adrian3 commented 13 years ago

Not sure if this is a bug or just an enhancement, but it would be nice to be able to use pngs that contain transparency with the layering system. My tests show that when using "overlayImage" with pngs the transparency in the png goes black. If there is already a workaround for this I would be glad to know it. Thanks!

meltingice commented 13 years ago

Definitely a bug, will get to it as soon as I can unless someone else wants to have a go with it. Off the top of my head, the problem probably lies within the layer blending code.

adrian3 commented 13 years ago

Thanks, Ryan. Fixing that buy is a bit over my head, but I would be glad to help with testing if you need it.

meltingice commented 12 years ago

Finally fixed!