Nodes · Filter
FilterErode
Filterv1core
Overview
Shrinks (positive) or grows (negative) a matte, with a falloff chosen by filter. It is a matte tool - on colour brighter than white the soft filters pull values toward white.
How to
How-to
- Set
size: positive erodes, negative dilates, to the fraction of a pixel. filteris the falloff. gaussian (the default) is soft and round. box is a hard edge with square corners. triangle and quadratic sit between.channelssays what it changes. For a key's edge set it to alpha.
Positive size shrinks the matte, negative grows it, with the falloff filter picks. An imported script keeps whatever filter it used.
It is a matte tool. On colour brighter than white the soft filters pull values toward white. To shrink or grow something in a picture, use Erode.
Inputs
| Input | What it takes |
|---|---|
| in | the image this node works on |
| mask | limits the effect to this matte — the engine's universal mask slot, applied for every node that declares it |
Outputs
| Output | Type |
|---|---|
| out | Image |
Parameters
| Parameter | Type | Default | What it does |
|---|---|---|---|
| channels | Choice | rgba | Which channels this node writes: rgba, rgb (alpha passes through untouched), alpha only, all, or none (bypass). Everything unselected comes straight from the input. allrgbargbalphanone |
| size | Float | 0.0 | How far the edge moves, in pixels, to the fraction: positive shrinks, negative grows. With a soft filter the half-way point of the edge moves exactly this far. |
| filter | Choice | gaussian | The falloff. gaussian (the default) is soft and round. box is a hard edge with square corners, and what scripts saved before the others existed keep. triangle and quadratic are in between. boxtrianglequadraticgaussian |
| disabled | Bool | false | Bypass: the node passes its first input through untouched (D in the graph). The knobs keep their values for when it comes back. |
| label | Text | A note shown under the node in the graph — what this node is FOR. Never affects the render or the cache. | |
| hide_input | Bool | false | Draw the node without its input wire — a tidy graph for a node whose source is obvious (a Dot, a viewer tap). |
