Skip to content

clamp

Clamp a number.

This is a synonym of clipping.

Parameters

  • x (float)

  • minimum – defaults to 0.0

  • maximum – defaults to 1.0