MotionScript

@motion-script/core


@motion-script/core / GrayscaleEffect

Interface: GrayscaleEffect

Defined in: attributes/shape/effects/implementations/grayscale.ts:4

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

amount

amount: number

Defined in: attributes/shape/effects/implementations/grayscale.ts:7

0–1: blend from original (0) to fully desaturated (1).


mode?

optional mode?: EffectMode

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

Inherited from

ModedEffect.mode


type

type: "grayscale"

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