kikito / anim8

An animation library for LÖVE
MIT License
730 stars 88 forks source link

(suggestion)fps2ms #39

Open Vovkiv opened 2 years ago

Vovkiv commented 2 years ago

What about add fps to ms converting into library? So if i want to export animation with specific framerate, after creating grid, i can define it as:

animation = grid1("1-8", 1), anim8.fps2ms(24))

instead of cryptic:

animation = grid1("1-8", 1), 0.041666667)

or

animation = grid1("1-8", 1), 1 / 24)

So it can be more readable? While i can manually define it as:

anim8.fps2ms = function(fps)
return 1 / fps
end

I rather prefer have it available out-of-box What to you think?