The magic wand namespace.Sourcesrc/tools/floodfill.js, line 15Seehttps://github.com/Tamersoul/magic-wand-js