This page documents the development version of Graphite at dev.graphite.art, which may differ from the current release.
Recolors each pixel of the input graphics from the pixels around it, weighted by a kernel of numbers, for sharpening, blurring, edge-finding, and embossing filters of your own design.
Interface
Inputs
| Parameter | Details | Possible Types |
|---|---|---|
| Content | The content to filter. Primary Input | Color[]ColorGenerator[]GeneratorGradient[]GradientGraphic[]GraphicRaster[]RasterString[]StringVector[]Vector |
| Kernel | The weight of each pixel around the one being recolored, written as one row of the kernel per line, with the numbers in a row separated by spaces or commas. Shorter rows end in zeros, and numbers that can't be read count as zero. The pixel being recolored lies at the middle row and column, or for even rows or columns, just right of or below the middle, so the kernel reaches one pixel further left or up. For kernels exceeding the 255×255 limit, only the 255 rows or columns nearest the center are kept. Default: `0 0 0 0 0 | |
| 0 0 -1 0 0 | ||
| 0 -1 5 -1 0 | ||
| 0 0 -1 0 0 | ||
| 0 0 0 0 0` | String[]String | |
| Has Scale | Whether the Scale is set by hand, rather than following the sum of the weights. Default: | Bool[]Bool |
| Scale | What the weighted sum is divided by. Otherwise, it's the sum of the weights so the brightness stays the same, or 1 if they sum to less, as edge-finding kernels do. Default: | Number[]Number |
| Offset | How much to brighten the result, in levels out of 255. Default: | Number[]Number |
| Apply To Alpha | Whether the kernel also weighs the alpha, so edges sharpen, blur, or spread like the colors do, rather than keeping their transparency. The Offset brightens only the colors. Default: | Bool[]Bool |
Outputs
| Product | Details | Possible Types |
|---|---|---|
| Result | The value produced by the node operation. Primary Output | GraphicGraphic[]VectorVector[]RasterRaster[]ColorColor[]GradientGradient[]StringString[]GeneratorGenerator[] |