MotionScript

@motion-script/core


@motion-script/core / GrainOptions

Interface: GrainOptions

Defined in: attributes/shape/effects/chain.ts:187

Film grain. Scalar shorthand sets amount.

Extends

Properties

amount?

optional amount?: number

Defined in: attributes/shape/effects/chain.ts:189

0–1 noise amplitude (default 0.25).


animated?

optional animated?: boolean

Defined in: attributes/shape/effects/chain.ts:195

Re-seed every frame from elapsed time (default false).


colored?

optional colored?: boolean

Defined in: attributes/shape/effects/chain.ts:197

Per-channel colour speckle instead of luminance noise (default false).


mode?

optional mode?: EffectMode

Defined in: attributes/shape/effects/effect-data.ts:83

Inherited from

EffectOptions.mode


seed?

optional seed?: number

Defined in: attributes/shape/effects/chain.ts:193

Random field offset — animate it for frame-locked shimmer (default 0).


size?

optional size?: number

Defined in: attributes/shape/effects/chain.ts:191

Grain cell size in pixels (default 1).