map()
Math / CalculationDescription
Re-maps a number from one range to another.
Syntax
float map(float value, float start1, float stop1, float start2, float stop2)
Parameters
| Name | Type | Description |
|---|---|---|
| value | float | the incoming value to be converted |
| start1 | float | lower bound of the input range |
| stop1 | float | upper bound of the input range |
| start2 | float | lower bound of the output range |
| stop2 | float | upper bound of the output range |
Returns
floatRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...