MotionScript

@motion-script/core


@motion-script/core / VideoEchoFilter

Interface: VideoEchoFilter

Defined in: attributes/shape/filters/implementations/echo.ts:16

Composites the current video frame with a trail of past frames (After Effects' Echo), each delayed by delay seconds and faded by a decay factor. Needs several decoded frames at once, so — unlike the pixel filters — it is rendered by a dedicated multi-pass path in the video fill renderer rather than the setImageFilter chain. Video-only; a no-op on image fills.

The trail reaches back echoes * delay source seconds; frames outside the adapter's decoded back-window are simply skipped (the trail fills in over the first second of playback after a cold seek).

Properties

blend?

optional blend?: "color" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "hue" | "saturation" | "luminosity" | "normal"

Defined in: attributes/shape/filters/implementations/echo.ts:25

Blend mode used to composite the echo taps. Default 'screen'.


decay?

optional decay?: number

Defined in: attributes/shape/filters/implementations/echo.ts:23

Per-tap alpha multiplier; tap n is drawn at decay ** n. Default 0.5.


delay

delay: number

Defined in: attributes/shape/filters/implementations/echo.ts:21

Delay between successive taps, in source seconds.


echoes

echoes: number

Defined in: attributes/shape/filters/implementations/echo.ts:19

Number of past-frame taps drawn behind the current frame.


type

type: "echo"

Defined in: attributes/shape/filters/implementations/echo.ts:17