Created
September 12, 2016 18:29
-
-
Save isoiphone/33a530a8eab52943df7968ce6dee935a to your computer and use it in GitHub Desktop.
Smoothstep
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// so smoooooth. | |
func smoothstep(x: CGFloat) -> CGFloat { | |
return x*x*(3-2*x) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment