@motion-script/core / SharpenEffect
Interface: SharpenEffect
Defined in: attributes/shape/effects/implementations/sharpen.ts:15
Unsharp mask — the standard sharpen: subtract a blurred copy of the content from itself and add the difference back, which exaggerates local contrast at edges.
out = c + amount · (c − blur(c, radius))
radius sets the scale of detail affected (a small radius crisps fine texture,
a large one adds "clarity" to broad shapes); amount sets how hard. Past
~2 the classic halo artefact shows up, which is sometimes the point.
Extends
Properties
amount
amount:
number
Defined in: attributes/shape/effects/implementations/sharpen.ts:18
Edge-contrast boost. 0 = off, 1 = a firm sharpen, >2 haloes.
mode?
optionalmode?:EffectMode
Defined in: attributes/shape/effects/effect-data.ts:83
Inherited from
radius
radius:
number
Defined in: attributes/shape/effects/implementations/sharpen.ts:20
Radius of the blurred reference, in px.
type
type:
"sharpen"
Defined in: attributes/shape/effects/implementations/sharpen.ts:16