decaying-accumulator
v0.1.2
Published
Outputs a number beween [-1, 1] which tends toward 0 over time but can be nudged
Downloads
11
Readme
A nudgeable number that tends toward zero
In applications such as realtime crowd voting or an audio VU meter, we want a number which spikes upward but decays to zero over time. This module captures exactly this, with no extra frills.
The file demo/votes.html
lets you play with this module through an
HTML meter and voting buttons.