diff options
-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(); |