aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-03-12 14:24:00 -0700
committerJose Antonio Marquez2012-03-12 14:24:00 -0700
commit8d62c5b896a1f86f2c7726b30310d6b1c7f535d5 (patch)
treeb2b3e7c5b948f210b9fcc5d3dbd39ae9752938f8 /assets
parent49e4c8695941f6bdd15893534ffb3ccce92c5396 (diff)
downloadninja-8d62c5b896a1f86f2c7726b30310d6b1c7f535d5.tar.gz
Fix for 2D Canvas runtime
Array was not allowing for multiple items.
Diffstat (limited to 'assets')
-rw-r--r--assets/CanvasRuntime.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/CanvasRuntime.js b/assets/CanvasRuntime.js
index 5caf72ee..445050bc 100644
--- a/assets/CanvasRuntime.js
+++ b/assets/CanvasRuntime.js
@@ -852,12 +852,12 @@ function RuntimeOval()
852 // translate 852 // translate
853 var xCtr = 0.5*world.getViewportWidth() + this._xOffset, 853 var xCtr = 0.5*world.getViewportWidth() + this._xOffset,
854 yCtr = 0.5*world.getViewportHeight() + this._yOffset; 854 yCtr = 0.5*world.getViewportHeight() + this._yOffset;
855 var mat = Matrix.create( [ 855 var mat = [
856 [ xScale, 0.0, 0.0, xCtr], 856 [ xScale, 0.0, 0.0, xCtr],
857 [ 0.0, yScale, 0.0, yCtr], 857 [ 0.0, yScale, 0.0, yCtr],
858 [ 0.0, 0.0, 1.0, 0.0], 858 [ 0.0, 0.0, 1.0, 0.0],
859 [ 0.0, 0.0, 0.0, 1.0] 859 [ 0.0, 0.0, 0.0, 1.0]
860 ] ); 860 ];
861 861
862 // get a bezier representation of the circle 862 // get a bezier representation of the circle
863 var bezPts = this.circularArcToBezier( [0,0,0], [1,0,0], 2.0*Math.PI ); 863 var bezPts = this.circularArcToBezier( [0,0,0], [1,0,0], 2.0*Math.PI );