effect-motion
API Referenceeffect-motionNamespacesParticlesFunctions

field

function field(props): Effect<FloatField, never, Runner>;

Function: field()

function field(props): Effect<FloatField, never, Runner>;

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

Create a floating field: particles spread evenly across the region, drifting and wrapping at the edges. Simulate it with { fill: n }.

Parameters

ParameterType
propsFieldInput

Returns

Effect<FloatField, never, Runner>

On this page