smooth

open fun smooth(x: Float): Float

Translates a value in a (0,1) range to a value in the same range with smooth ease in and ease out. 0, 0.5 and 1 returns the same but 0.25 returns 0.11 and 0.75 return 0.89

Return

Smoothed float value

Parameters

x

Float clamped from 0 to 1