Skip to content

clamp

Clamps the heights so far between optional bounds, to flatten a basin floor or cap peaks.

Key Type Default Range Unit Description
min number, optional null m Lowest height kept, in metres; lower heights are raised to it, flattening basin floors. Unset leaves heights unbounded below.
max number, optional null m Highest height kept, in metres; higher heights are lowered to it, capping peaks. Unset leaves heights unbounded above.
Every key with its default
{
    "type": "clamp",
    "min": null,
    "max": null
}

Used in: example_layers_scale_and_clamp