diff --git a/libs/bluepixle.js b/libs/bluepixle.js index 367be7d..f53b615 100644 --- a/libs/bluepixle.js +++ b/libs/bluepixle.js @@ -7,7 +7,7 @@ class shape { this.type = "string" == typeof type ? (["rect","elipse","image"].includes(type) ? type : "rect") : "rect"; this.coordinates = coordinates instanceof vector ? coordinates : new vector([0,0]); this.dimentions = dimentions instanceof vector ? dimentions : new vector([1,1]); - this.rotation = rotation instanceof vector ? rotation : new vector([0,1]); + this.rotation = rotation instanceof vector ? rotation : new vector([1,0]); this.fColor = "string" == typeof fColor ? fColor : undefined; this.bColor = "string" == typeof bColor ? bColor : undefined; this.bStyle = "number" == typeof bStyle ? bStyle : undefined; @@ -89,7 +89,7 @@ class container { constructor(coordinates,dimentions,rotation) { this.coordinates = coordinates instanceof vector ? coordinates : new vector([0,0]); this.size = dimentions instanceof vector ? dimentions : new vector([1,1]); - this.rotation = rotation instanceof vector ? rotation : new vector([0,1]); + this.rotation = rotation instanceof vector ? rotation : new vector([1,0]); this.movementVector = new vector([0,0]); this.shapes = []; this.containers = [];