This art project draws pendulums on the canvas.
The project can be found on thependel.art.
It would be very appealing if each pendulum has an additional fade duration after which the drawn line disappears. Unfortunately, the things I tried out weren't satisfatory:
- clear canvas and redraw everything which didn't fade out
- very slow
- clear canvas and redraw everything through
bezierCurve
in big steps (e.g. 45°)- a lot faster than 1. (still very unefficient)
- redrawing doesn't result in the same image
- fabric.js
- tried with Polylines and with grouped Lines
- both too slow