¡@

Home 

javascript Programming Glossary: stopfunction

How can I perform flood fill with HTML Canvas?

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

. If undefined or null use the whole of the canvas. stopFunction .............. Function that decides if a pixel is a boundary.. is the color under the seed point x y . Parameters stopFunction fillColor seedColor pixelColor . Returns true if flooding.. b blue a alpha fill function canvas fillColor x y bounds stopFunction Supply default values if necessary. var ctx minChangedX minChangedY..