linmap()
Re-maps a number from one range to another.
Example

# value to be mapped from the first range
x1 = round(min1+(max1-min1)*sin(frameCount/10)**2)
line(x1, 25, x1, 75)
text(str(x1), x1, 15)
# mapping the value to the second range
x2 = linmap(x1, min1, max1, min2, max2)
text(str(round(x2,2)), x2, 285)
line(x2, 225, x2, 275)Syntax
Input
Description
Description
Last updated