ring
fun Canvas.ring(cx: Int, cy: Int, iradius: Float, oradius: Float, startAngle: Float, endAngle: Float, segments: Int = 6, color: Color = Color.BLACK)
Draws a ring outline on the canvas.
Parameters
cx
The X coordinate of the ring center
cy
The Y coordinate of the ring center
iradius
The inner radius of the ring
oradius
The outer radius of the ring
start Angle
The starting angle of the ring in degrees
end Angle
The ending angle of the ring in degrees
segments
The number of segments to use for drawing the ring (more segments = smoother ring, typically >= 6)
color
The color of the ring