Table of Contents

Method CreateSquarePath

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

CreateSquarePath(float, SKPathDirection)

Creates a square path centered at the origin with the specified side length.

public static SKPath CreateSquarePath(float side, SKPathDirection direction = SKPathDirection.Clockwise)

Parameters

side float

The length of each side of the square.

direction SKPathDirection

The winding direction of the path.

Returns

SKPath

A new SKPath representing the square.