binarymax / floodfill.js

HTML5 Canvas Floodfill via JavaScript
MIT License
57 stars 14 forks source link

Fill clear? #2

Closed tomm1e closed 8 years ago

tomm1e commented 8 years ago

I tried "fill clearing" with a transparent fill color (r:0,g:0,b:0,a:0) and it freezes Chrome, memory goes sky high and the browser needs to be killed.

But if I set the alpha value to 1 it's fine. Is there any way to keep it at 0?

binarymax commented 8 years ago

Thanks for letting me know! Line 37 is the offender. I should have time to fix it this weekend.

binarymax commented 8 years ago

fixed!