'now' and 'lastNow' as draw parameters

This commit is contained in:
Gavin McDonald
2018-09-01 22:59:09 -04:00
parent 6a9d006ab4
commit 9dddf78ccc
2 changed files with 6 additions and 0 deletions

View File

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