HTML5 Canvas Tutorial8 - Eclipses
Methods
ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle [, anticlockwise])
Parameters
x
The x-axis (horizontal) coordinate of the ellipse's center.
y
The y-axis (vertical) coordinate of the ellipse's center.
radiusX
The ellipse's major-axis radius. Must be non-negative.
radiusY
The ellipse's minor-axis radius. Must be non-negative.
rotation
The rotation of the ellipse, expressed in radians.
startAngle
The angle at which the ellipse starts, measured clockwise from the positive x-axis and expressed in radians.
endAngle
The angle at which the ellipse ends, measured clockwise from the positive x-axis and expressed in radians.
anticlockwise Optional
An optional Boolean which, if true, draws the ellipse anticlockwise (counter-clockwise). The default value is false (clockwise).