Closed
Description
It can be solved, just replace draw in function animate:
if (to_row * this.circleRadius >= cur_pos) {
this.clear();
//this.draw(); current call position
this.drawCircle(this.circleRadius * column + 50, cur_pos + 50, 25, fg_color, "black");
this.drawMask();
this.draw(); // call draw() there to solve radius changing
window.requestAnimationFrame(function () {
that.animate(column, move, to_row, cur_pos + 25, callback);
});
} else {
callback();
}
Metadata
Metadata
Assignees
Labels
No labels