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

Add GUI and tidy up #31

Closed dangarfield closed 1 year ago

dangarfield commented 1 year ago

A lot of tidying up as well as added a dedicated GUI with sliders and event listeners for changes and actions. I'll help @skal65535 with the rest of his work after this. Exciting times!

hunar4321 commented 1 year ago

That is awesome! Thanks I'm a bit discouraged now to work on the C++ version when seeing the JavaScript version advancing so swiftly!

skal65535 commented 1 year ago

very nice! The UI is very clean and much more polished than my cheap attempt at CSS hacking ;)

Few things i noticed:

For the particles, what's missing is a per-particle radius (instead of the global cutOff param) which produced interesting pattern, as well as the main loop fix that updates the velocity separately from position. I can have a look at that later, leaving the UI to Dan's expertise...