arcTo method
The CanvasRenderingContext2D.arcTo()
method of the Canvas 2D API
adds a circular arc to the current sub-path, using the given control
points and radius.
The arc is automatically connected to the path's latest point with a
straight line if necessary, for example if the starting point and control
points are in a line.
This method is commonly used for making rounded corners.
Note: You may get unexpected results when using a relatively large radius: the arc's connecting line will go in whatever direction it must to meet the specified radius.
Implementation
external void arcTo(
num x1,
num y1,
num x2,
num y2,
num radius,
);