circle

fun circle(center: Point, radius: Double, direction: RotationDirection): Path

Creates a circle path. The direction flag allows multiple circles to be combined to create circular holes. A ring can be created by joining an outer and inner circle with opposite directions.

Return

path representing the circle

Parameters

center

of the circle

radius

of the circle

direction

to draw in