MotionScript

@motion-script/core


@motion-script/core / EffectFilter

Type Alias: EffectFilter

EffectFilter = Exclude<SceneEffect, NonFilterEffect>

Defined in: attributes/shape/filters/union.ts:67

Scene effects usable as a media filter — i.e. applied to one image/video fill's own pixels rather than to a node and everything under it.

This is what lets a background image be oil-painted, dithered or posterized without wrapping it in a node whose effect would also hit its children:

<Rect fill={Fills.image('bg.jpg', { filters: ImageFilters.oilPaint(4) })}>
    <Text text="still sharp" />
</Rect>

The effects carry a mode field that means nothing here (a fill has no backdrop); the FilterChain builders drop it, and the renderer ignores it on this path.