smoothNormalizeRange

open fun smoothNormalizeRange(x: Float, start: Float, end: Float): Float

Translates a value from a (start,end) range into a value in a (0,1) range with smooth ease in and ease out. Allows to segment the value of a timer or an effect level into different shorter sliders

Return

smoothed float value in the new range

Parameters

x

Float clamped from 0 to 1

start

new range minimal value

end

new range maximal value