|
@ -149,8 +149,10 @@ if (typeof CanvasRenderingContext2D !== 'undefined') { |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas
|
|
|
* http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas
|
|
|
|
|
|
* |
|
|
|
|
|
* Postfix '_vis' added to discern it from standard method ellipse(). |
|
|
*/ |
|
|
*/ |
|
|
CanvasRenderingContext2D.prototype.ellipse = function (x, y, w, h) { |
|
|
|
|
|
|
|
|
CanvasRenderingContext2D.prototype.ellipse_vis = function (x, y, w, h) { |
|
|
var kappa = .5522848, |
|
|
var kappa = .5522848, |
|
|
ox = (w / 2) * kappa, // control point offset horizontal
|
|
|
ox = (w / 2) * kappa, // control point offset horizontal
|
|
|
oy = (h / 2) * kappa, // control point offset vertical
|
|
|
oy = (h / 2) * kappa, // control point offset vertical
|
|
|