Path2D.ArcTo

Path2D.ArcTo method

Adds an arc to the path with the given control points and radius, connected to the previous point by a straight line.

public void ArcTo(double x1, double y1, double x2, double y2, double radius)
ParameterTypeDescription
x1Doublex-axis coordinates for the first control point.
y1Doubley-axis coordinates for the first control point.
x2Doublex-axis coordinates for the second control point.
y2Doubley-axis coordinates for the second control point.
radiusDoubleThe arc’s radius.

See Also