ringSection

fun ringSection(center: Point, innerRadius: Double, outerRadius: Double, start: Measure<Angle>, end: Measure<Angle>, startCap: SegmentBuilder = { _,_ -> }, endCap: SegmentBuilder = { _,it -> lineTo(it) }): Path

Creates a path for a section of a ring (donut) shape. The direction of sweep is controlled by the sign of end - start.

Return

path representing the ring section

Parameters

center

of the torus

innerRadius

of the torus

outerRadius

of the torus

start

angle

end

angle

startCap

defining how to cap the starting side of the section

endCap

defining how to cap the ending side of the section