ProtoFlux:Avg: Difference between revisions

From Resonite Wiki
m fix link
m fix link for real
Line 30: Line 30:
=== 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]]

Revision as of 19:26, 20 May 2024

Avg
A
*
B
Math

The Avg node returns the arithmetic mean of two values.

Inputs

A (Dummy)

A value.

B (Dummy)

A value. This value must match the type of A.

Outputs

* (Dummy)

The arithmetic mean of the two inputs.

Examples