This page was last updated: July 6, 2019
As a reminder, this function takes an input value, the range of values it lives between, and the range of output values. It returns the output value that corresponds to the input value. So, for example, if we wanted to turn an x value into a red color, we might say:
int red = int( map( x, 0, width - 1, 0, 255 ) );