Method DrawRegularPolygon
DrawRegularPolygon(SKCanvas, SKPoint, float, int, SKPaint)
Draws a regular polygon centered at the specified point.
public static void DrawRegularPolygon(this SKCanvas canvas, SKPoint c, float radius, int points, SKPaint paint)
Parameters
canvasSKCanvasThe canvas to draw on.
cSKPointThe center point of the polygon.
radiusfloatThe circumscribed circle radius.
pointsintThe number of vertices of the polygon.
paintSKPaintThe paint to use for drawing.
DrawRegularPolygon(SKCanvas, float, float, float, int, SKPaint)
Draws a regular polygon centered at the specified coordinates.
public static void DrawRegularPolygon(this SKCanvas canvas, float cx, float cy, float radius, int points, SKPaint paint)