API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceLifetimeFunction

@codexo/exojs-particles / particles / stable

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.

0
props
1
methods
0
events
Import
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.

Methods1
evaluate(t: number, out?: T): T
Source