kaguranana-birthday-project/node_modules/granim/lib/clear.js

13 lines
235 B
JavaScript
Raw Normal View History

2021-12-12 21:49:32 -05:00
'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);
};