Grain
Esta página aún no está disponible en tu idioma.
type: "grain" · SVG filter: does not change the geometry; the browser applies it to the whole object after the rest of its stack. · Editor menu: Filters.
Grain over the drawing. Tone: fine noise that lightens and darkens it (only inside), like film or print. Stipple: dotted dust, each pixel on or off in the drawing’s colour, more often where it is more opaque: solid areas stay solid and the dots appear where it fades, so put Blur (or a Gradient’s opacity) before it for an edge that turns into dust. Amount sets how strong the noise is (Tone) or how far the dots reach (Stipple), Curve how quickly they thin out (more leaves more black between them); Size, the grain or the dots; animate Seed with scene.frame for grain that boils.
Parameters
Section titled “Parameters”| Param | Type | Default | Range | Notes |
|---|---|---|---|---|
mode |
enum | "tone" |
tone, stipple |
not animatable |
amount |
number | 0.35 |
min 0, max 1, step 0.01 | shown as a percentage in the editor (0.5 is 50 %) |
size |
number | 1 |
min 0.25, max 10, step 0.05 | unit: px |
curve |
number | 2 |
min 0.5, max 6, step 0.05 | only when mode is stipple |
seed |
seed | 1 |
integer | |
area |
enum | "all" |
all, radial, band |
not animatable; group: Area |
center |
point | [0.5,0.5] |
[x, y], fractions of the box (0–1), shown as percentages in the editor | only when area is radial or band; group: Area |
radius |
number | 0.3 |
min 0, max 2, step 0.01 | fraction of the drawing size; only when area is radial or band; group: Area |
falloff |
number | 0.5 |
min 0, max 1, step 0.01 | shown as a percentage in the editor (0.5 is 50 %); only when area is radial or band; group: Area |
angle |
angle | 0 |
degrees | only when area is band; group: Area |
invert |
boolean | false |
only when area is radial or band; group: Area |
Missing parameters take their default. Numbers and angles (and points and colours) can be animated with a track { on: "modifier", modifier: "<id>", param: "<name>" } unless noted.
In a scene
Section titled “In a scene”Inside a node’s stack (effects run top to bottom):
{ "id": "grain-1", "type": "grain", "params": { "mode": "tone", "amount": 0.35, "size": 1, "curve": 2, "seed": 1, "area": "all", "center": [ 0.5, 0.5 ], "radius": 0.3, "falloff": 0.5, "angle": 0, "invert": false }}Generated from the schema of @svertik/engine. See the index.