API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceLifetimeFunction
Lifetime-parameterised function that produces a deterministic `T` for a given lifetime ratio `t` in `[0, 1]`. Used by per-frame update modules that interpolate over particle lifetime - `ColorOverLifetime` (ColorGradient), `ScaleOverLifetime` (Curve), etc. Mutable-target rule: same as Distribution - pass your own scratch via `out` for hot loops, omit for one-off calls.
import { LifetimeFunction } from '@codexo/exojs-particles'Lifetime-parameterised function that produces a deterministic `T` for a given lifetime ratio `t` in `[0, 1]`. Used by per-frame update modules that interpolate over particle lifetime - `ColorOverLifetime` (ColorGradient), `ScaleOverLifetime` (Curve), etc.
Mutable-target rule: same as Distribution - pass your own scratch via `out` for hot loops, omit for one-off calls.
evaluate(t: number, out?: T): T