hunar4321 / particle-life

A simple program to simulate artificial life using attraction/reuplsion forces between many particles
MIT License
2.98k stars 297 forks source link

[Feature request] Animated parameter change over time. #6

Open sebbes333 opened 1 year ago

sebbes333 commented 1 year ago

In the "Control panel" on the left, it would be cool if the parameters could slowly animate towards random values, so it's possible to see how everything in the system changes when the parameters change over time.

For example: You click on the "Animate" button (Better name?), and it randomly generates a "Target value" for each slider. Then the slider value SLOWLY (like 0.001 speed or random speed, or something) moves towards that target value. When the slider reaches the target area, it waits for some time, then a new target value is chosen & it restarts moving towards THAT new target value instead.

Different sliders will have different distances to their target value,

Preferably there would be an option to toggle between all these 3 "sync" options, but that's maybe wishing too much?