Skip to content
party.js logoparty.js logo

ReferenceCustom effectsInterface

RectEmissionShape

A rectangular area that particles spawn from.

A filled rectangle that particles spawn from, with every point inside it equally likely. Set width or height to 0 to emit particles from a line.

centeroptionalVec2default{ x: 0, y: 0 }

The center of the rectangle, in pixels from the origin.

heightnumber

The height of the rectangle, in pixels.

type"rect"
widthnumber

The width of the rectangle, in pixels.