@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?
optionalamount?: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?
optionalangle?:number
Defined in: attributes/shape/effects/chain.ts:419
Map rotation in degrees (default 0).
channel?
optionalchannel?:DisplaceChannel
Defined in: attributes/shape/effects/chain.ts:413
Which channels of the map are read (default 'rg').
midpoint?
optionalmidpoint?:number
Defined in: attributes/shape/effects/chain.ts:415
The map value meaning "don't move" (default 0.5, what signed maps use).
mode?
optionalmode?:EffectMode
Defined in: attributes/shape/effects/effect-data.ts:83
Inherited from
EffectOptions.mode
scale?
optionalscale?: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.