diff options
author | Nivesh Rajbhandari | 2012-02-22 11:36:19 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-02-22 11:36:19 -0800 |
commit | f775fb752cac57a0c1f6c42c8c60f5ff329eab32 (patch) | |
tree | 62ef5c4e57ed4fe3601eb90d8881b94053df8f3d /js/helper-classes/RDGE/GLCircle.js | |
parent | eb8223a286e3703a0b7995f5472aaec8dcffd7f8 (diff) | |
download | ninja-f775fb752cac57a0c1f6c42c8c60f5ff329eab32.tar.gz |
Revert "Integrating canvas-2d drawing and WebGL fixes, including adding back WebGL materials."
This reverts commit 96a0a8c916533eb5625816192ed38488f639326d.
Diffstat (limited to 'js/helper-classes/RDGE/GLCircle.js')
-rwxr-xr-x | js/helper-classes/RDGE/GLCircle.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/js/helper-classes/RDGE/GLCircle.js b/js/helper-classes/RDGE/GLCircle.js index 5b32547e..08057778 100755 --- a/js/helper-classes/RDGE/GLCircle.js +++ b/js/helper-classes/RDGE/GLCircle.js | |||
@@ -400,10 +400,7 @@ function GLCircle() | |||
400 | ctx.lineWidth = 0; | 400 | ctx.lineWidth = 0; |
401 | ctx.fillStyle = "#990000"; | 401 | ctx.fillStyle = "#990000"; |
402 | if (this._fillColor) | 402 | if (this._fillColor) |
403 | { | 403 | ctx.fillStyle = MathUtils.colorToHex( this._fillColor ); |
404 | var c = "rgba(" + 255*this._fillColor[0] + "," + 255*this._fillColor[1] + "," + 255*this._fillColor[2] + "," + this._fillColor[3] + ")"; | ||
405 | ctx.fillStyle = c; | ||
406 | } | ||
407 | 404 | ||
408 | // draw the fill | 405 | // draw the fill |
409 | ctx.beginPath(); | 406 | ctx.beginPath(); |
@@ -463,10 +460,7 @@ function GLCircle() | |||
463 | ctx.lineWidth = lineWidth; | 460 | ctx.lineWidth = lineWidth; |
464 | ctx.strokeStyle = "#0000ff"; | 461 | ctx.strokeStyle = "#0000ff"; |
465 | if (this._strokeColor) | 462 | if (this._strokeColor) |
466 | { | 463 | ctx.strokeStyle = MathUtils.colorToHex( this._strokeColor ); |
467 | var c = "rgba(" + 255*this._strokeColor[0] + "," + 255*this._strokeColor[1] + "," + 255*this._strokeColor[2] + "," + this._strokeColor[3] + ")"; | ||
468 | ctx.strokeStyle = c; | ||
469 | } | ||
470 | 464 | ||
471 | // draw the stroke | 465 | // draw the stroke |
472 | p = MathUtils.transformPoint( bezPts[0], mat ); | 466 | p = MathUtils.transformPoint( bezPts[0], mat ); |