XeroOl / notitg-mirin

The NotITG Mirin Template. Easily create modfiles using Lua.
https://xerool.github.io/notitg-mirin
The Unlicense
35 stars 16 forks source link

Flipped eases #15

Closed XeroOl closed 3 years ago

XeroOl commented 3 years ago

A common use case is to have a mod instantly jump up to value, and then ease back down to its initial value. In Exchwasion's template, you could put the percentages as 100, 0, but in the Mirin template, you can only put in one mod percentage. Because of that, it takes more lines of code in the Mirin template than in the Exschwasion template.

The plan is to add a flip function that can modify an ease, creating a transient ease. Here's how it would look like in use

ease {0, 1, flip(outExpo), 100, 'invert'}

Thanks to tari for pointing this out.

XeroOl commented 3 years ago

I did it :)