shifted number line | redefined dimension axis

A = mouseX / stageW
B = A - 1/2
C = 2 * abs( B )
D = 1 - C

D = 1 - ( 2 * | A - 1/2 | ) 