The original function: $f(x) = \frac{1}{1+e^{-10(x-0.5)}} $. Its graph (blue line) is shown here:

How can I squeeze this function obliquely along the $y=x$ line? The squeezed function $g$ needs to satisfy that $g(0.5) = 0.5$, $g(0)$ is close to $0$, and $g(1)$ is close to $1$. The graph of this function $g$ that I have in mind is the black line in the image above.

