Table of Contents

Method CreateRegularStarPath

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

CreateRegularStarPath(float, float, int, SKPathDirection)

Creates a regular star path centered at the origin with alternating outer and inner vertices.

public static SKPath CreateRegularStarPath(float outerRadius, float innerRadius, int points, SKPathDirection direction = SKPathDirection.Clockwise)

Parameters

outerRadius float

The radius of the outer vertices.

innerRadius float

The radius of the inner vertices.

points int

The number of star points (outer vertices).

direction SKPathDirection

The winding direction of the path.

Returns

SKPath

A new SKPath representing the star.