Skip to content

Commit

Permalink
Update ShaderToyLite.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chipweinberger authored Jun 13, 2024
1 parent 576b140 commit 99ae97a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ShaderToyLite.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,11 @@ function ShaderToyLite(canvasId) {
flip[key] = false;
}

this.getTime = () => {
this.time = () => {
return (prevDrawTime - firstDrawTime) * 0.001;
}

this.getIsPlaying = () => isPlaying;
this.isPlaying = () => isPlaying;

this.reset = () => {
var now = new Date();
Expand All @@ -422,4 +422,4 @@ function ShaderToyLite(canvasId) {
}

setup();
}
}

0 comments on commit 99ae97a

Please sign in to comment.