From cb3c0b37c7d9912244b4b25bd8b4d205062ff4f6 Mon Sep 17 00:00:00 2001 From: bluesaxman Date: Thu, 10 Feb 2022 09:01:11 -0700 Subject: [PATCH] ANOTHER minor refrence error fixed --- libs/bluepixle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/bluepixle.js b/libs/bluepixle.js index 431a755..561aadc 100644 --- a/libs/bluepixle.js +++ b/libs/bluepixle.js @@ -118,7 +118,7 @@ class container { rotation = rotation instanceof vector ? rotation : new vector([0,1]); var refPos = this.coordinates.add(position); var refRot = rad2vec(this.rotation.getRadAngle() + (rotation instanceof vector ? rotation : new vector([0,1])).getRadAngle()); - var center = refPos.add(this.dimentions.mag(0.5)); + var center = refPos.add(this.size.mag(0.5)); ctx.translate(center.d[0],center.d[1]); ctx.rotate(refRot.getRadAngle()); ctx.translate(-center.d[0],-center.d[1]);