map(x, s1, e1, s2, e2);
Maps x from an original range to a target range
Arguments
x
The value to maps1
The start of the initial rangee1
The end of the initial ranges2
The start of the target rangee2
The end of the target rangeReturns
number
The mapped value