kaguranana-birthday-project/node_modules/granim/lib/clear.js
2021-12-12 18:49:32 -08:00

13 lines
235 B
JavaScript

'use strict';
module.exports = function() {
if (!this.isPaused) {
cancelAnimationFrame(this.animation);
} else {
this.isPaused = false;
}
this.isCleared = true;
this.context.clearRect(0, 0, this.x1, this.y1);
};