Skip to main content
Module

x/targadactyl/deps.ts>PathEffectFactory

tga.js implemented in Deno
Go to Latest
interface PathEffectFactory
import { type PathEffectFactory } from "https://deno.land/x/targadactyl@1.1.0/deps.ts";

See SkPathEffect.h for more details.

Methods

MakeCorner(radius: number): PathEffect | null

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

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

Returns a PathEffect that add dashes to the path.

See SkDashPathEffect.h for more details.

MakeDiscrete(
segLength: number,
dev: number,
seedAssist: number,
): PathEffect

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.