Skip to content

BurstOptions

How the particles of one burst start: speed, life, direction, size, spin and look.

optional speed?: number | [number, number]

Speed range, stage units per second.


optional life?: number | [number, number]

Life range, seconds.


optional angle?: number

Direction (rad) and spread around it; full circle by default.


optional spread?: number

Radians around angle; without it, the full circle.


optional scale?: number | [number, number]

Scale at birth and at death.


optional spin?: number

Spin range, rad per second.


optional tint?: ColorLike

Their colour (multiplied with the frame’s pixels), e.g. the player’s colour.


optional alpha?: number

Alpha at birth; they fade out over their life.