m fix link |
Fixed types to "Pseudo-generic" in descriptions. |
||
(One intermediate revision by one other user not shown) | |||
Line 17: | Line 17: | ||
== Inputs == | == Inputs == | ||
=== A ( | === A (Pseudo-generic) === | ||
A value. | A value. | ||
=== B ( | === B (Pseudo-generic) === | ||
A value. This value must match the type of <code>A</code>. | A value. This value must match the type of <code>A</code>. | ||
== Outputs == | == Outputs == | ||
=== * ( | === * (Pseudo-generic) === | ||
The arithmetic mean of the two inputs. | The arithmetic mean of the two inputs. | ||
=== Examples === | === Examples === | ||
<gallery widths=480px heights=400px> | <gallery widths=480px heights=400px> | ||
File:Protoflux example avg.webp|An example of using <code>Avg</code> for two colors, as well as [[ProtoFlux:Avg Multi|]] for four float values. | File:Protoflux example avg.webp|An example of using <code>Avg</code> for two colors, as well as [[ProtoFlux:Avg Multi|Avg Multi]] for four float values. | ||
</gallery> | </gallery> | ||
[[Category:ProtoFlux:Math]] | [[Category:ProtoFlux:Math]] |
Latest revision as of 10:55, 22 May 2024
Avg
Math
The Avg node returns the arithmetic mean of two values.
Inputs
A (Pseudo-generic)
A value.
B (Pseudo-generic)
A value. This value must match the type of A
.
Outputs
* (Pseudo-generic)
The arithmetic mean of the two inputs.
Examples
-
An example of using
Avg
for two colors, as well as Avg Multi for four float values.