sharpen
Sharpens the child by boosting the contrast between each pixel and its neighbours.
sharpen(amount: ArgSpec): GatherEffect
Import effects from shaders/std and use effects.blurs.sharpen.
amount 0 leaves the child unchanged; 0–5 is the usual range. Alpha is untouched.
Parameters
| Name | Type | Notes |
|---|---|---|
amount | ArgSpec |
Example
effect: sharpen(p('sharpness'))
Tip. Declare
identityWhen: isZero('sharpness')andrecompile: crosses(0)on the prop so 0 costs nothing.
See also
gaussianBlur— A soft, even blur of the child.scatter— Scatters every pixel of the child by a random offset: a grainy diffusion, not a smooth blur.