fill Polygon
fun Canvas.fillPolygon(cx: Int, cy: Int, sides: Int, radius: Float, rotation: Float = 0.0f, color: Color = Color.BLACK)
Draws a filled polygon on the canvas.
Parameters
cx
The X coordinate of the polygon center
cy
The Y coordinate of the polygon center
sides
The number of sides of the polygon (minimum 3)
radius
The radius of the polygon
rotation
The rotation of the polygon in degrees
color
The color of the polygon