Method CreateRegularPolygonPath
CreateRegularPolygonPath(float, int, bool, SKPathDirection)
Creates a regular polygon path inscribed in a circle of the specified radius, centered at the origin.
public static SKPath CreateRegularPolygonPath(float radius, int points, bool horizontalBase = true, SKPathDirection direction = SKPathDirection.Clockwise)
Parameters
radiusfloatThe circumscribed circle radius.
pointsintThe number of vertices of the polygon.
horizontalBaseboolIf
true, rotates the polygon so the base edge is horizontal (for even-sided polygons).directionSKPathDirectionThe winding direction of the path.