Draws the specified ellipse. If the object’s path has any subpaths, this method adds a straight line from the last point in the subpath to the start point of the arc. Then, it adds the start and end points of the arc to the subpath, and connects them with an arc.
Experimental, subject to change or removal; deletion candidate.
Method of apis/canvas/CanvasRenderingContext2Dapis/canvas/CanvasRenderingContext2D
Syntaxvar object = object.ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise);
Parameters x
The x-coordinate, in pixels, for the center point of the arc in relation to the upper-left corner of the canvas rectangle.
yThe y-coordinate, in pixels, for the center point of the arc in relation to the upper-left corner of the canvas rectangle.
radiusXThe x-coordinate, in pixels, from the point (x,y) that the arc’s path follows.
radiusYThe y-coordinate, in pixels, from the point (x,y) that the arc’s path follows.
rotationThe rotation, in radians, the semi-major axis is inclined clockwise from the x-axis.
startAngleThe starting angle, in radians, where 0 is at the 3 o’clock position of the arc’s circle.
endAngleThe starting angle, in radians.
anticlockwisetrue: The arc is drawn in a counterclockwise direction from start to end.
false: The arc is drawn in a clockwise direction from start to end.
Return ValueReturns an object of type DOM NodeDOM Node
Type: HRESULT
This method can return one of these values.
Return code Description S_OK The operation completed successfully. IndexSizeError The specified radius value is negative. Related specificationsMicrosoft Developer Network: Windows Internet Explorer API reference Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4