AfterimageShader.js
AfterimageShader
Motion trails

Preview requires WebGL2. You can still download the demo.
Image processing demo
Leaves fading trails behind moving objects, like waving a glow stick. Higher persistence keeps the trails for longer.
Official source