ProtoFlux:Avg: Difference between revisions

From Resonite Wiki
to the protoflux standard
example
Line 28: Line 28:
=== * (Dummy) ===
=== * (Dummy) ===
The arithmetic mean of the two inputs.
The arithmetic mean of the two inputs.
=== Examples ===
<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.
</gallery>


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

Revision as of 01:57, 15 January 2024

Avg
A
*
B
Math

Usage

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