I have an algorithm for Floodfilling a canvas. Im trying to incorporate this with fabricJS
. So here is the dilemna.... I create a fabric.Canvas()
. Which creates a wrapper canvas and also an upper-canvas canvas. I click on the canvas to apply my Floodfill()
. This works fine and applies my color. But as soon as i go to drag my canvas objects around, or add additional objects to the canvas, the color disappears and looks like it resets of sort.
Asked
Active
Viewed 136 times
0
-
1share your code - it will help someone help you. – Alan Aug 08 '18 at 04:13
-
Not really into fabric, but IMM the best would be to put your ImageData over an offscreen native canvas, and somehow add this native canvas into your scene. Though I'm not sure if fabric.Image does accept a native canvas... – Kaiido Aug 08 '18 at 04:27