@motion-script/core / ThresholdEffect
Interface: ThresholdEffect
Defined in: attributes/shape/effects/implementations/threshold.ts:12
Two-tone cut: every pixel brighter than level becomes white, everything
else black — the stencil / high-contrast look.
smoothness widens the cut into a ramp centred on level, which both
anti-aliases the boundary and, at higher values, keeps some midtone
modelling instead of a pure stencil.
Extends
Properties
level
level:
number
Defined in: attributes/shape/effects/implementations/threshold.ts:15
0–1 luminance cut point.
mode?
optionalmode?:EffectMode
Defined in: attributes/shape/effects/effect-data.ts:83
Inherited from
smoothness
smoothness:
number
Defined in: attributes/shape/effects/implementations/threshold.ts:17
0–1 width of the ramp around the cut; 0 is a hard, aliased edge.
type
type:
"threshold"
Defined in: attributes/shape/effects/implementations/threshold.ts:13