JavaScript canvas2d object method: arcTo()
[this page | pdf | back links]
The
arcTo() method of the JavaScript
DOM object returned
by the getContext("2d")
method applied to the HTML <canvas>
element creates a circular arc between two tangents.
It
has the following syntax with the following parameters.
context.arcTo(x, y, r, startAngle,
endAngle, counterclockwise)
|
Parameter
|
Required / Optional
|
Description
|
|
xstart
|
Required
|
x-coordinate of start
tangent
|
|
ystart
|
Required
|
y-coordinate of start
tangent
|
|
xend
|
Required
|
x-coordinate of end
tangent
|
|
yend
|
Required
|
y-coordinate of end
tangent
|
|
r
|
Required
|
Radius of arc
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)