Mikhus / canvas-gauges

HTML5 Canvas Gauge. Tiny implementation of highly configurable gauge using pure JavaScript and HTML5 canvas. No dependencies. Suitable for IoT devices because of minimum code base.
http://canvas-gauges.com/
MIT License
1.58k stars 396 forks source link

AnimationRule #267

Open Bredahl opened 1 year ago

Bredahl commented 1 year ago

Can anyone help me change this formula. I'm not very good at Math.

New Radialgauge ({
   // ... some options ...
   AnimationRule: Function (percent) {
   Return Math.Pow (percent, 5)
   },

I need about 1 seconds delay, With the first number of the animation and then 3 sec linear animation.

And no setTimeout() is not an option.

TuShen121 commented 1 year ago

您的邮件我已收到,谢谢!