MotionScript

@motion-script/core


@motion-script/core / BulgeEffect

Interface: BulgeEffect

Defined in: attributes/shape/effects/implementations/bulge.ts:5

Mixin: every effect declares the layer it targets via EffectMode. Omitted is treated as "foreground". A single uniform field across all effects means the backdrop/foreground classifier never has to branch on type.

Extends

Properties

center

center: Vector2

Defined in: attributes/shape/effects/implementations/bulge.ts:14

Lens centre in 0–1 normalised layer coordinates ({ x: 0.5, y: 0.5 } = middle).


mode?

optional mode?: EffectMode

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

Inherited from

ModedEffect.mode


strength

strength: number

Defined in: attributes/shape/effects/implementations/bulge.ts:12

Distortion amount applied to the node's own content (not the backdrop): positive bulges the centre outward (barrel), negative pinches it inward (pincushion). Edges stay pinned. Sensible range ≈ −1…1.


type

type: "bulge"

Defined in: attributes/shape/effects/implementations/bulge.ts:6