Skip to content
pixi-silk
GitHub repository
Interface

PolylineOptions

import type { PolylineOptions } from 'pixi-silk';

Options of polyline(): closed loops and monotone or Catmull-Rom smoothing of the points.

Properties#

PropertyTypeDescriptionDefined in
closed?booleanConnect the last point back to the first. Default false.SilkGraphics.ts:171
smooth?false | "monotone" | "catmull"Resample through a smooth curve. monotone never overshoots (charts), catmull for free paths.SilkGraphics.ts:173
step?numberSample spacing for smoothing, local units. Default 2.SilkGraphics.ts:175