PathBuilder.htmlArcTo

Implements arc-to according to the HTML Canvas spec.

A convenience function that implements the HTML arc_to

functionality.

After this, the current point will be the point where the circle with the given radius touches the line from x1, y1 to x2, y2.

class PathBuilder
void
htmlArcTo
(
float x1
,
float y1
,
float x2
,
float y2
,
float radius
)

Parameters

x1 float

X coordinate of first control point

y1 float

Y coordinate of first control point

x2 float

X coordinate of second control point

y2 float

Y coordinate of second control point

radius float

Radius of the circle