API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceTrailParticlesOptions
@codexo/exojs-particles / particles / stable
Construction options for TrailParticles.
4
props
0
methods
0
events
Import
import { TrailParticlesOptions } from '@codexo/exojs-particles'Construction options for TrailParticles.
Properties4
fade?: numberAlpha multiplier at the oldest end of a trail, interpolated from 1 at the particle itself. A trail carries one particle's tint from end to end, so this is what separates head from tail; 1 draws it as a solid band.
interval?: numberSeconds between two recorded positions, measured on each particle's own age so the trail spans the same amount of travel at any frame rate. A floor rather than a guarantee: a frame longer than the interval records one position, not several, because the positions in between were never simulated.
points?: numberRecorded positions kept behind each particle, rounded down to a whole number and at least one. Together with interval this fixes how far back a trail reaches: points * interval seconds of travel. Costs capacity * points * 2 floats of history for the system this mode is attached to.
width?: numberWidth of the trail in system-local units, before per-particle scaling. The half-width actually emitted is width * scaleX[i] / 2.
Source