Importing a new version from external source |
m FuzzyBot moved page Translations:Component:ValueGradientDriver`1/4/en to Translations:Component:ValueGradientDriver/4/en without leaving a redirect: Part of translatable page "Component:ValueGradientDriver`1" |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== Examples == | == Examples == | ||
<gallery widths=560px heights=480px> | <gallery widths=560px heights=480px> | ||
File:component_example_ValueGradientDriver.webm|alt=A ValueGradientDriver is set up with five float values. Index 0 has position 0.00 and value 0, index 1 has position 0.77 and value 2, index 2 has position 0.25 and value 4, index 3 has position 0.67 and value 6, and index 4 has position 1.00 and value 8. As progress moves from 0 to 1, the target field is linearly interpolated between the values of indices 0, 2, 3, 1, then 4. Once interpolation is unchecked, the target field is merely set to the previous index value.|General usage of the component, showing interpolation and non-interpolation between five float values. | |||
File:Component_example_ValueGradientDriver_IndexOfMax.webp|alt=A ValueGradientDriver is set up with five int values. The progress is fixed at 1 and each point's value is set to its index. Interpolation is disabled. The index of the point with the greatest position is output.|An unorthodox yet valid usage of the component, as way to find the index of the maximum value in a list of floats (as the <code>Position</code> values) without the need for ProtoFlux. <code>Progress</code> may be set to 0 to find the index of the minimum value as well. | File:Component_example_ValueGradientDriver_IndexOfMax.webp|alt=A ValueGradientDriver is set up with five int values. The progress is fixed at 1 and each point's value is set to its index. Interpolation is disabled. The index of the point with the greatest position is output.|An unorthodox yet valid usage of the component, as way to find the index of the maximum value in a list of floats (as the <code>Position</code> values) without the need for ProtoFlux. <code>Progress</code> may be set to 0 to find the index of the minimum value as well. | ||
</gallery> | </gallery> |
Latest revision as of 05:30, 19 February 2024
Examples
-
General usage of the component, showing interpolation and non-interpolation between five float values.
-
An unorthodox yet valid usage of the component, as way to find the index of the maximum value in a list of floats (as the
Position
values) without the need for ProtoFlux.Progress
may be set to 0 to find the index of the minimum value as well.