Skip to content

Wind

type: "wind" · Deformer: moves the points of the drawing. · Editor menu: Experimental.

Air blowing through the drawing, for the next simulation: a following Gravity, the Physics of an enclosing group (on a child, or on the group before Physics) or a Rope. Direction and Speed (px/s) are its mean velocity. Gusts make the speed rise and drop over time, about Gust rate times per second, never blowing backwards; Turbulence bends its speed and direction from place to place, in eddies of Eddy size that travel with the wind. Catch is how fast what it carries takes the air’s speed (per second): what it moves tends to that speed instead of accelerating for ever. Fibres, outlines and ropes catch it across their surface (hardly along it), so a cloth, a flag or a cord waves; a rigid body is dragged by the air at its centre. Several Winds add up. Changes no geometry by itself. Deterministic: the same Seed and time give the same air, in Play and exports.

Param Type Default Range Notes
direction angle 0 degrees
speed number 300 min 0, max 3000, step 1 unit: px/s
gust number 0.4 min 0, max 1, step 0.01 shown as a percentage in the editor (0.5 is 50 %); label: Gusts
gustRate number 0.4 min 0, max 5, step 0.05 unit: Hz; label: Gust rate
turbulence number 0.3 min 0, max 1, step 0.01 shown as a percentage in the editor (0.5 is 50 %)
scale number 200 min 1, max 4000, step 1 unit: px; label: Eddy size
catch number 3 min 0, max 30, step 0.1 unit: 1/s
seed seed 1 integer

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.

Inside a node’s stack (effects run top to bottom):

{
"id": "wind-1",
"type": "wind",
"params": {
"direction": 0,
"speed": 300,
"gust": 0.4,
"gustRate": 0.4,
"turbulence": 0.3,
"scale": 200,
"catch": 3,
"seed": 1
}
}

Generated from the schema of @svertik/engine. See the index.