Skip to content
pixi-silk
GitHub repository
Function

drawPath

import { drawPath } from 'pixi-silk/path';
function drawPath<G extends PathSink>(g: G, path: BezierPath): G;

Draws path into g with moveTo, lineTo, bezierCurveTo and closePath, then returns g for .fill() and .stroke(). A SilkGraphics fills it even-odd.

Type Parameters#

Type Parameter
G extends PathSink

Parameters#

ParameterType
gG
pathBezierPath

Returns#

G