Skip to main content


Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
interface SkPathEffectFactory
import { type SkPathEffectFactory } from "";

See SkPathEffect.h for more details.


MakeCorner(radius: number): SkPathEffect | null

Returns a PathEffect that can turn sharp corners into rounded corners.

MakeDash(intervals: number[], phase?: number): SkPathEffect

Returns a PathEffect that add dashes to the path.

See SkDashPathEffect.h for more details.

segLength: number,
dev: number,
seedAssist: number,
): SkPathEffect

Returns a PathEffect that breaks path into segments of segLength length, and randomly move the endpoints away from the original path by a maximum of deviation.