Home
API: forms

Function: taper()

lifecycle-kit

lifecycle-kit


lifecycle-kit / forms / taper

Function: taper()

taper(params): Path

Defined in: forms/rules/taper.ts:55

Emit a closed tapering silhouette along +x.

The curve through (0, from), (bulgeAt*length, max(from,to)*shape-dependent peak) and (length, to) is built from two quadratics per side — flare-in and taper-out — so the outline can bulge past both endpoints' widths rather than being confined to a straight interpolation between them. This is what lets bulgeAt actually read as a bulge instead of a corner.

Parameters

params

TaperParams

Returns

Path