codepo8 / canvas-masking

Masking images with canvas - Demo http://codepo8.github.io/canvas-masking/
207 stars 34 forks source link

Add support for transparent images #7

Closed rkbhochalya closed 6 years ago

rkbhochalya commented 8 years ago

Using 'source-atop' compositing fills transparent area of the image (png) with white color while 'source-in' works for both transparent and non transparent images.