We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 19fa310 + 3bbe9a7 commit 3e1eae2Copy full SHA for 3e1eae2
src/core/transform.js
@@ -156,7 +156,8 @@ import p5 from './main';
156
* A rectangle in the upper left corner
157
*/
158
p5.prototype.applyMatrix = function() {
159
- if (Array.isArray(arguments[0])) {
+ let isTypedArray = arguments[0] instanceof Object.getPrototypeOf(Uint8Array);
160
+ if (Array.isArray(arguments[0]) || isTypedArray) {
161
this._renderer.applyMatrix(...arguments[0]);
162
} else {
163
this._renderer.applyMatrix(...arguments);
0 commit comments