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#
| Parameter | Type |
|---|---|
g | G |
path | BezierPath |
Returns#
G