Home
API: forms

Interface: TaperParams

lifecycle-kit

lifecycle-kit


lifecycle-kit / forms / TaperParams

Interface: TaperParams

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

A body outline that narrows (or widens) along its axis.

Unlike the other five rules, taper does not take a unit Path to transform — it IS the primitive body-outline generator. repeat places copies of something; taper is usually the something. An ant's thorax, a jellyfish bell's profile and a fern frond's midrib are all one tapering outline with different width curves.

The outline is built as two symmetric half-width curves — top and bottom — joined into one closed subpath, which is the standard way to turn a 1D width function into a filled 2D silhouette. Using quadratic control points (rather than sampling into a polyline) keeps the outline exact and resolution-independent, matching the header's argument in path.ts.

Properties

bulgeAt

readonly bulgeAt: number

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

Where along the curve the width bulges before narrowing, 0..1 as a fraction of length. 0.5 is a symmetric bulge (a grub, a bell); moving it toward 0 or 1 makes the widest point read as a head or a base — an ant's abdomen is fat near the thorax and this is the parameter that says so, continuously, rather than as a separate "abdomen" shape.


from

readonly from: number

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

Half-width at the start of the axis (x = 0), in form-space units.


index?

readonly optional index?: number

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


length

readonly length: number

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

Length of the body along its axis.


part?

readonly optional part?: string

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

Which anatomical part this outline belongs to, for depth banding.


to

readonly to: number

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

Half-width at the end of the axis (x = length).