arcTo - method of object CanvasCtx

Creates an arc between two tangents.
arcTo(x1 As Long, y1 As Long, x2 As Long, y2 As Long, r As Long) As Object
ctx.arcTo(x1, y1, x2, y2, r);
x1(Long) The x-coordinate of the beginning of the arc
y1(Long) The y-coordinate of the beginning of the arc
x2(Long) The x-coordinate of the end of the arc
y2(Long) The y-coordinate of the end of the arc
r(Long) The radius of the arc
The method creates a path. Therefore before this method is called the beginPath method should be called. For the rendering itself the stroke or fill method is used.
The method can also be called in the graphic item events for Web Panels.
See also:
- arc
ctx.moveTo(20, 20); // Create a starting point
ctx.lineTo(100, 20); // Create a horizontal line
ctx.arcTo(150, 20, 150, 70, 50); // Create an arc
ctx.lineTo(150, 120); // Create a vertical line
ctx.stroke(); // Draw it
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice