MotionScript

@motion-script/core


@motion-script/core / DisplaceOptions

Interface: DisplaceOptions

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

Displacement map. Scalar shorthand sets amount on both axes.

mode: 'backdrop' displaces what is painted beneath the node instead — i.e. refraction through the node's silhouette.

Extends

Properties

amount?

optional amount?: number | Vector2

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

Displacement in px — a number for both axes, or per-axis via { x, y } (default 20).


angle?

optional angle?: number

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

Map rotation in degrees (default 0).


channel?

optional channel?: DisplaceChannel

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

Which channels of the map are read (default 'rg').


midpoint?

optional midpoint?: number

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

The map value meaning "don't move" (default 0.5, what signed maps use).


mode?

optional mode?: EffectMode

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

Inherited from

EffectOptions.mode


scale?

optional scale?: number

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

1 covers the node once; 2 tiles it at half size (default 1).


src

src: string

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

Map image path, resolved like an image fill's src.