Answer the question
In order to leave comments, you need to log in
How to get rid of white background under animation in Libcanvas?
Implemented an example on Libcanvas. Then I decided to experiment with isometry. I made a simple 2x2 grid. Replaced
ctx.drawImage({
image : this.animation.get(),
center: this.shape.center
});
ctx.projectiveImage({
image : this.animation.get(),
to: this.shape
});
Answer the question
In order to leave comments, you need to log in
Good afternoon) The problem is most likely that by default, cleaning goes through the “boundingRectangle” of the shape.
Try adding this code to your class and tell me if the bug has been fixed?
clearPrevious: function (ctx) {
ctx.clear( this.shape );
}
get currentBoundingShape () {
return this.shape;
}
With this question it is better to address this person.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question