You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just don't generate a canvas element each time, but keep a reference of it when it first generated, so that you can utilize it and just clear it each time you need to re-paint a new picture, codes like this way:
I found it will not remove the older DOM element when I upload a new picture for generating a new emoji-mosaic picture.
Maybe you should change this line a little bit, https://github.com/ericandrewlewis/emoji-mosaic/blob/master/index.html#L112
Just don't generate a canvas element each time, but keep a reference of it when it first generated, so that you can utilize it and just clear it each time you need to re-paint a new picture, codes like this way:
And thanks for the idea! It's really interesting by the way! :-)
The text was updated successfully, but these errors were encountered: