stop setting canvas width/height on every draw, it clears the canvas
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user