stop setting canvas width/height on every draw, it clears the canvas

This commit is contained in:
Gavin McDonald
2018-09-13 21:03:45 -04:00
parent 85fbc28cf4
commit f406dfd63b

View File

@@ -63,9 +63,6 @@ export default class Sketch {
} }
render (now) { render (now) {
this.canvas.width = this.container.offsetWidth;
this.canvas.height = this.container.offsetHeight;
this.context.lastUTC = this.context.utc || null; this.context.lastUTC = this.context.utc || null;
this.context.utc = Date.now(); this.context.utc = Date.now();