aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPushkar Joshi2012-02-07 07:20:28 -0800
committerPushkar Joshi2012-02-07 07:20:28 -0800
commite7aa17a9b472640355e95c54841399f6203050d4 (patch)
tree8b01ff9c360ffc85ae19e9517c673f26b8174f9e /js
parentacc500d1f1c76f4e7c93ae1cfea8d925ca95e7b9 (diff)
downloadninja-e7aa17a9b472640355e95c54841399f6203050d4.tar.gz
don't use colorToHex function because it only works for 3D color (needs a fix to colorToHex)
Diffstat (limited to 'js')
-rw-r--r--js/helper-classes/RDGE/GLSubpath.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/js/helper-classes/RDGE/GLSubpath.js b/js/helper-classes/RDGE/GLSubpath.js
index fd2f3560..62323b6d 100644
--- a/js/helper-classes/RDGE/GLSubpath.js
+++ b/js/helper-classes/RDGE/GLSubpath.js
@@ -136,8 +136,11 @@ function GLSubpath() {
136 if (this._strokeColor) 136 if (this._strokeColor)
137 ctx.strokeStyle = MathUtils.colorToHex( this._strokeColor ); 137 ctx.strokeStyle = MathUtils.colorToHex( this._strokeColor );
138 ctx.fillStyle = "white"; 138 ctx.fillStyle = "white";
139 if (this._fillColor) 139 if (this._fillColor){
140 ctx.fillStyle = MathUtils.colorToHex( this._fillColor ); 140 //ctx.fillStyle = MathUtils.colorToHex( this._fillColor );
141 var fillColorStr = "rgba("+parseInt(255*this._fillColor[0])+","+parseInt(255*this._fillColor[1])+","+parseInt(255*this._fillColor[2])+","+this._fillColor[3]+")";
142 ctx.fillStyle = fillColorStr;
143 }
141 var lineCap = ['butt','round','square']; 144 var lineCap = ['butt','round','square'];
142 ctx.lineCap = lineCap[1]; 145 ctx.lineCap = lineCap[1];
143 ctx.beginPath(); 146 ctx.beginPath();