fabricJS Not persisting Floodfill -


i have algorithm floodfilling canvas. im trying incorporate fabricjs. here dilemna.... create fabric.canvas(). creates wrapper canvas , upper-canvas canvas. click on canvas apply floodfill(). works fine , applies color. go drag canvas objects around, or add additional objects canvas, color disappears , looks resets of sort.

any idea why is?

this happen because fabricjs wipe out canvas every frame , redraw internal data.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -