Thanks!
It's kinda hard to explain but I think LazyDevs explains it in his roguelite tutorial:
Thanks! I’ve looked at this before, not quite what I was looking for but decided to use the flux easing library in Love2D to achieve a similar effect.