Table of Contents

Method CreateTrianglePath

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

CreateTrianglePath(float, float, SKPathDirection)

Creates a triangle path centered at the origin with the specified bounding width and height.

public static SKPath CreateTrianglePath(float width, float height, SKPathDirection direction = SKPathDirection.Clockwise)

Parameters

width float

The width of the triangle's bounding box.

height float

The height of the triangle's bounding box.

direction SKPathDirection

The winding direction of the path.

Returns

SKPath

A new SKPath representing the triangle.

CreateTrianglePath(float, SKPathDirection)

Creates a regular triangle (equilateral) path inscribed in a circle of the specified radius, centered at the origin.

public static SKPath CreateTrianglePath(float radius, SKPathDirection direction = SKPathDirection.Clockwise)

Parameters

radius float

The circumscribed circle radius.

direction SKPathDirection

The winding direction of the path.

Returns

SKPath

A new SKPath representing the equilateral triangle.