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

9 lines
231 B
JavaScript

'use strict';
module.exports = function(newDirection) {
this.context.clearRect(0, 0, this.x1, this.y1);
this.direction = newDirection;
this.validateInput('direction');
if (this.isPaused) this.refreshColorsAndPos();
};