binarymax / floodfill.js

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

Bounding issue #3

Closed bryan1001 closed 8 years ago

bryan1001 commented 8 years ago

In the case where a floodFill at (5,5) this was happening:

image

Changed so the bounds would be honored:

image

(Just noticed Atom killed some trailing whitespace mucking up the commit, sorry about that)

binarymax commented 8 years ago

Thanks for the fix!