¡@

Home 

javascript Programming Glossary: tryx

How can I perform flood fill with HTML Canvas?

http://stackoverflow.com/questions/2106995/how-can-i-perform-flood-fill-with-html-canvas

currentX currentY currentColor currentIndex seedColor tryX tryY tryIndex boundsWidth boundsHeight pixelStart fillRed fillGreen.. list to be tested unless they have already been tested. tryX currentX 1 tryY currentY tryIndex tryY boundsWidth tryX if tryX.. tryX currentX 1 tryY currentY tryIndex tryY boundsWidth tryX if tryX 0 wasTested tryIndex shouldTest.push tryIndex tryX..