diff options
author | Pushkar Joshi | 2012-02-07 07:20:28 -0800 |
---|---|---|
committer | Pushkar Joshi | 2012-02-07 07:20:28 -0800 |
commit | e7aa17a9b472640355e95c54841399f6203050d4 (patch) | |
tree | 8b01ff9c360ffc85ae19e9517c673f26b8174f9e /js/helper-classes/RDGE | |
parent | acc500d1f1c76f4e7c93ae1cfea8d925ca95e7b9 (diff) | |
download | ninja-e7aa17a9b472640355e95c54841399f6203050d4.tar.gz |
don't use colorToHex function because it only works for 3D color (needs a fix to colorToHex)
Diffstat (limited to 'js/helper-classes/RDGE')
-rw-r--r-- | js/helper-classes/RDGE/GLSubpath.js | 7 |
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(); |