ProtoFlux:Avg: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page Avg (ProtoFlux) to ProtoFlux:Avg: Creating protoflux Namespace
m fix link
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 [[Avg Multi (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|]] for four float values.
</gallery>
</gallery>


[[Category:ProtoFlux:Math]]
[[Category:ProtoFlux:Math]]

Revision as of 19:25, 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