rendering a board of squares
This commit is contained in:
@@ -38,7 +38,8 @@ export default class Sketch {
|
||||
|
||||
this.lastNow = now;
|
||||
|
||||
setTimeout(() => {requestAnimationFrame(this.render)}, this.drawDelay);
|
||||
if (this.drawDelay) setTimeout(() => requestAnimationFrame(this.render), this.drawDelay);
|
||||
else requestAnimationFrame(this.render);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user