MotionScript

@motion-script/core


@motion-script/core / BlockDisplaceOptions

Interface: BlockDisplaceOptions

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

Datamosh-style band tearing. Scalar shorthand sets amount.

Extends

Properties

amount?

optional amount?: number

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

Maximum displacement in px (default 20).


axis?

optional axis?: EffectAxis

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

Which way bands slide (default 'x').


density?

optional density?: number

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

0–1 fraction of bands that move at all (default 0.3).


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:332

Random field offset — step it to jump between glitch states (default 0).


size?

optional size?: number

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

Band thickness in px (default 16).