anim8 icon indicating copy to clipboard operation
anim8 copied to clipboard

(suggestion)fps2ms

Open Vovkiv opened this issue 2 years ago • 0 comments

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?

Vovkiv avatar Mar 27 '22 13:03 Vovkiv