Garry's Mod Wiki

Revision Difference

math.ease.InElastic#546475

<function name="InElastic" parent="math.ease" type="libraryfunc">⤶ <description>Eases in like a rubber band.⤶ <note>This doesn't work properly when used with <page>Global.Lerp</page> as it clamps the fraction between 0 and 1. Using your own version of <page>Global.Lerp</page> that is unclamped would be necessary instead.</note>⤶ </description>⤶ <realm>Shared and Menu</realm>⤶ <file line="142-L148">lua/includes/extensions/math/ease.lua</file>⤶ <args>⤶ <arg name="fraction" type="number">Fraction of the progress to ease, from 0 to 1</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">"Eased" Value</ret>⤶ </rets>⤶ </function>