borderOverlay
Draws a color over a paint wherever a mask falls to 0, keeping the paint's alpha.
borderOverlay(paint: Paint, mask: Field, slots: {color: PropRef}): Paint
Import noise from shaders/std and use noise.borderOverlay.
mask is 1 where the paint shows through and 0 where color covers it. The Voronoi border move: fill the cells, then overlay the border lines.
Parameters
| Name | Type | Notes |
|---|---|---|
paint | Paint | |
mask | Field | |
slots | {color: PropRef} |
Example
paint: borderOverlay(rampOver(cellFill(cells, {edgeIntensity: p('edgeIntensity')}), stops(p('colorSpace'))), cellBorders(cells, {softness: p('edgeSoftness'), scale: p('scale')}), {color: p('colorBorder')})
See also
cellBorders— A mask of the lines between cells: 0 on a boundary, 1 inside a cell.cellFill— A 0–1 fill for each cell: 0 at the cell's point, 1 at its boundary, whatever the cell size.