q5 1.0.26 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/q5.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "quinton-ashley",
3
3
  "name": "q5",
4
- "version": "1.0.26",
4
+ "version": "1.0.27",
5
5
  "description": "An implementation of the p5.js 2D API that's smaller and faster",
6
6
  "main": "q5.js",
7
7
  "scripts": {
package/q5.js CHANGED
@@ -2106,12 +2106,12 @@ function Q5(scope, parent) {
2106
2106
  }
2107
2107
  $.deltaTime = pre - $._lastFrameTime;
2108
2108
  $._frameRate = 1000 / $.deltaTime;
2109
+ $.frameCount++;
2109
2110
  for (let m of Q5.prototype._methods.pre) m.call($);
2110
2111
  clearBuff();
2111
2112
  firstVertex = true;
2112
2113
  ctx.save();
2113
2114
  $._drawFn();
2114
- $.frameCount++;
2115
2115
  for (let m of Q5.prototype._methods.post) m.call($);
2116
2116
  ctx.restore();
2117
2117
  let post = performance.now();