m 989onan moved page Clamp01 (ProtoFlux) to Clamp 01 (ProtoFlux): Misspelled title |
ze standard |
||
Line 12: | Line 12: | ||
|}} | |}} | ||
== Usage == | |||
The Clamp 01 node will camp the provided numeric value between 0 and 1. | |||
== Inputs == | |||
=== N (Generic) === | |||
A numeric value. | |||
== Outputs == | |||
=== * (Generic) === | |||
The input value, with the following conditions: | |||
# If <code>N < 0</code>, output <code>0</code> | |||
# If <code>N > 1</code>, output <code>1</code> | |||
# Otherwise, output <code>N</code> | |||
In the case of types with multiple values, each individual value will be clamped. | |||
== Examples == | |||
<gallery widths=400px heights=400px> | |||
File:Protoflux example clamp 01.webp|Four examples of the Clamp 01 node. | |||
</gallery> | |||
[[Category:ProtoFlux:Math]] | [[Category:ProtoFlux:Math]] |
Revision as of 02:18, 15 January 2024
Clamp01
Math
Usage
The Clamp 01 node will camp the provided numeric value between 0 and 1.
Inputs
N (Generic)
A numeric value.
Outputs
* (Generic)
The input value, with the following conditions:
- If
N < 0
, output0
- If
N > 1
, output1
- Otherwise, output
N
In the case of types with multiple values, each individual value will be clamped.
Examples
-
Four examples of the Clamp 01 node.