Skip to content
party.js logoparty.js logo

ReferenceParticlesInterface

PathShape

Draws a particle according to a given path.

A shape determined by a Path2D.

The path is expected to fit in a 1x1 box centered at (0, 0), oriented to have +y pointing down. A supplied Path2D should only be created once, outside of any samplers, to avoid it being created for every particle.

pathPath2D
type"path"