MotionScript

@motion-script/core


@motion-script/core / RgbShiftEffect

Interface: RgbShiftEffect

Defined in: attributes/shape/effects/implementations/rgb-shift.ts:17

Per-channel spatial offset — the red/green/blue planes pulled apart along independent vectors.

Where chromaticAberration models a lens, so its fringing is symmetric and driven by one distance and angle, this is the digital-artefact version: each channel is displaced wherever you point it, including all three differently. That freedom is what makes it the RGB-tear component of a glitch, and it is why the two effects coexist rather than one subsuming the other.

Offsets are in px and scale with the node, like every other px option.

Extends

Properties

blue

blue: Vector2

Defined in: attributes/shape/effects/implementations/rgb-shift.ts:24

Blue plane offset in px.


green

green: Vector2

Defined in: attributes/shape/effects/implementations/rgb-shift.ts:22

Green plane offset in px.


mode?

optional mode?: EffectMode

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

Inherited from

ModedEffect.mode


red

red: Vector2

Defined in: attributes/shape/effects/implementations/rgb-shift.ts:20

Red plane offset in px.


type

type: "rgbShift"

Defined in: attributes/shape/effects/implementations/rgb-shift.ts:18