chelnak / ysmrr

YSMRR is a package that provides simple multi-line compatible spinners for Go applications.
MIT License
71 stars 6 forks source link

Add default spinner speeds #43

Closed chelnak closed 1 year ago

chelnak commented 1 year ago

Prior to this PR spinners would use the default speed of 250 milliseconds set in the managers constructor method.

This commit introduces a new concept of animation properties that allow each spinner to have its own default speed. The speeds used come from this website.

It is still possible to globally override the speed via the managers WithFrameDuration option.