From de5a1bae0fc0e09078a5309c7fb48e1085dd56bb Mon Sep 17 00:00:00 2001 From: cortezyaa <57326234+cortezyaa@users.noreply.github.com> Date: Wed, 30 Sep 2026 18:44:32 +0300 Subject: [PATCH] Add some ease functions --- lua/starfall/libs_sh/math.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lua/starfall/libs_sh/math.lua b/lua/starfall/libs_sh/math.lua index 50aded93a..47dd9dc12 100644 --- a/lua/starfall/libs_sh/math.lua +++ b/lua/starfall/libs_sh/math.lua @@ -592,6 +592,18 @@ math_library.easeOutCubic = math.ease.OutCubic -- @return number "Eased" Value math_library.easeOutElastic = math.ease.OutElastic +--- Eases out using an exponential equation with a base of 2 and where the fraction is used in the exponent. +-- @class function +-- @param number fraction Fraction of the progress to ease, from 0 to 1 +-- @return number "Eased" Value +math_library.easeOutExpo = math.ease.OutExpo + +--- Eases out like a rubber band. +-- @class function +-- @param number fraction Fraction of the progress to ease, from 0 to 1 +-- @return number "Eased" Value +math_library.easeOutQuad = math.ease.OutQuad + --- Eases out by raising the fraction to the power of 4. -- @class function -- @param number fraction Fraction of the progress to ease, from 0 to 1