Hello,
I'm currently building a website, for which I am using the HTML canvas runtime with Spine, mainly because of how lightweight the end-result is in comparison to GIFs or videos, and being overall more effective on everything else.
That said, while I was able to successfully get the canvas to render the animation, it did so with a little issue:
GIF:
As you can see, by having a transparent fill style on the canvas, the previous frame from the animation isn't being cleaned.
The code used to make the above happen is the following:
SpineCanvas.js
Which takes me to the question:
Is there any built-in method I can use from the spine-canvas plugin to clean the canvas when render() [method in the uploaded js] is being called?
Or alternatively, is there a native functionality from canvas that I'm unaware of that can fix this issue?
Regardless, thank you for your time, and have a nice day.