vx = function(sx) -- turn surface coordinates into viewport coordinates return scale(sx-Viewport.x) end