Clamp¶
Name | Mandatory | Description | Default | Type |
---|---|---|---|---|
⬅️ Input |
The value to clamp. | Int Int2 Int3 Int4 Int8 Int16 Float Float2 Float3 Float4 Color |
||
Output ➡️ |
The clamped value. | Int Int2 Int3 Int4 Int8 Int16 Float Float2 Float3 Float4 Color |
||
Min |
No | The lower bound of the range | none |
Int Var(Int) Int2 Var(Int2) Int3 Var(Int3) Int4 Var(Int4) Int8 Var(Int8) Int16 Var(Int16) Float Var(Float) Float2 Var(Float2) Float3 Var(Float3) Float4 Var(Float4) Color Var(Color) [Any] Var([Any]) |
Max |
No | The upper bound of the range | none |
Int Var(Int) Int2 Var(Int2) Int3 Var(Int3) Int4 Var(Int4) Int8 Var(Int8) Int16 Var(Int16) Float Var(Float) Float2 Var(Float2) Float3 Var(Float3) Float4 Var(Float4) Color Var(Color) [Any] Var([Any]) |
This shard ensures the input value falls within the specified range. If the value falls below the minimum, the Min value is returned. If the value exceeds the maximum, the Max value is returned. Otherwise, the value is returned unchanged.