diff options
author | Nivesh Rajbhandari | 2012-03-30 13:53:47 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-30 13:53:47 -0700 |
commit | eae317815e15a7ffc2dd1bd1e39b208eaa02fd2b (patch) | |
tree | cae3e2d74529061a04b817ae216c2dbecbb5c5bb /js/lib | |
parent | 80782d5d0721463f716f0a7241afd09a38543199 (diff) | |
download | ninja-eae317815e15a7ffc2dd1bd1e39b208eaa02fd2b.tar.gz |
Update PI and Color Panel to reflect default LinearGradient and RadialGradient materials' colors.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/lib')
-rwxr-xr-x | js/lib/geom/circle.js | 4 | ||||
-rwxr-xr-x | js/lib/geom/line.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/js/lib/geom/circle.js b/js/lib/geom/circle.js index ee3e2abd..f74d4e57 100755 --- a/js/lib/geom/circle.js +++ b/js/lib/geom/circle.js | |||
@@ -42,8 +42,8 @@ var Circle = function GLCircle() { | |||
42 | 42 | ||
43 | this._strokeWidth = strokeSize; | 43 | this._strokeWidth = strokeSize; |
44 | this._innerRadius = innerRadius; | 44 | this._innerRadius = innerRadius; |
45 | if (strokeColor) this._strokeColor = strokeColor; | 45 | this._strokeColor = strokeColor; |
46 | if (fillColor) this._fillColor = fillColor; | 46 | this._fillColor = fillColor; |
47 | 47 | ||
48 | this._strokeStyle = strokeStyle; | 48 | this._strokeStyle = strokeStyle; |
49 | } | 49 | } |
diff --git a/js/lib/geom/line.js b/js/lib/geom/line.js index 2b2434f5..f3806fac 100755 --- a/js/lib/geom/line.js +++ b/js/lib/geom/line.js | |||
@@ -44,7 +44,7 @@ var Line = function GLLine( world, xOffset, yOffset, width, height, slope, strok | |||
44 | 44 | ||
45 | this._slope = slope; | 45 | this._slope = slope; |
46 | this._strokeWidth = strokeSize; | 46 | this._strokeWidth = strokeSize; |
47 | if (strokeColor) this._strokeColor = strokeColor.slice(); | 47 | this._strokeColor = strokeColor; |
48 | 48 | ||
49 | this._strokeStyle = strokeStyle; | 49 | this._strokeStyle = strokeStyle; |
50 | this._scaleX = (world.getViewportWidth())/(world.getViewportHeight()); | 50 | this._scaleX = (world.getViewportWidth())/(world.getViewportHeight()); |