Skip to content

Easings

Swifter edited this page Oct 18, 2024 · 1 revision

Prerequisites

You should learn about point definitions in the heck schema and it's definition of easings before continuing: https://github.com/Aeroluna/Heck/wiki/Animation#point-definitions

Type

The rm.EASE type includes every easing that can be used in Heck animations.

alt text

Functions

All easing functions are implemented in ReMapper and are available in the rm.easing namespace.

alt text

They take in a value between 0-1 and return a value between 0-1 which has been effected by the easing.

rm.easing.easeOutExpo(0.5) // 0.96875

There is also rm.applyEasing function which takes in an rm.EASE and a value between 0-1 and returns the result of running the value through the corresponding easing function.

rm.applyEasing('easeOutExpo', 0.5) // 0.96875

Clone this wiki locally