effect-motion
API Referenceeffect-motionNamespacesParticlesInterfaces

EmitterInput

props unique to a source emitter (launched particles with a lifetime)

Interface: EmitterInput

Defined in: packages/motion/src/particles/constructors.ts:54

props unique to a source emitter (launched particles with a lifetime)

Extends

  • CommonInput

Properties

angle

readonly angle: Range;

Defined in: packages/motion/src/particles/constructors.ts:58

launch angle range (degrees; 0 = up, counterclockwise-positive)


capacity?

readonly optional capacity?: number;

Defined in: packages/motion/src/particles/constructors.ts:50

fixed particle capacity

Inherited from

CommonInput.capacity

gravity?

readonly optional gravity?: number;

Defined in: packages/motion/src/particles/constructors.ts:46

shared screen-downward (-y) acceleration (px/sec²)

Inherited from

CommonInput.gravity

life

readonly life: Range;

Defined in: packages/motion/src/particles/constructors.ts:60

lifetime range (seconds)


opacityOverLife?

readonly optional opacityOverLife?: OverLifeInput;

Defined in: packages/motion/src/particles/constructors.ts:48

Inherited from

CommonInput.opacityOverLife

opacityRange?

readonly optional opacityRange?: Range;

Defined in: packages/motion/src/particles/constructors.ts:42

per-particle birth opacity range (0..1); over-life curve multiplies it

Inherited from

CommonInput.opacityRange

palette?

readonly optional palette?: readonly Color[];

Defined in: packages/motion/src/particles/constructors.ts:44

colors drawn from uniformly at birth

Inherited from

CommonInput.palette

size?

readonly optional size?: Range;

Defined in: packages/motion/src/particles/constructors.ts:40

birth size range (px radius)

Inherited from

CommonInput.size

sizeOverLife?

readonly optional sizeOverLife?: OverLifeInput;

Defined in: packages/motion/src/particles/constructors.ts:47

Inherited from

CommonInput.sizeOverLife

speed

readonly speed: Range;

Defined in: packages/motion/src/particles/constructors.ts:56

launch speed range (px/sec)


x?

readonly optional x?: number;

Defined in: packages/motion/src/particles/constructors.ts:37

Inherited from

CommonInput.x

y?

readonly optional y?: number;

Defined in: packages/motion/src/particles/constructors.ts:38

Inherited from

CommonInput.y

On this page