Simple Particle Attractor

Posted on 19 Jul 2024 in JavaScript LLM

This was an experiment to test an LLM's ability to create code that works, but also follow a given look and style for the visualization. The result is a simple animated Lagrange attractor simulating the motion of particles around a central point. The particles have trails so you can see their path better in 2D. Sadly the gpt-4-omni prompt and exchange were lost but I had saved the output code.

Multi-Attractor System

Update: June 28, 2026 Update, one-shot ("add another attractor below") using the Co-Pilot auto LLM. A more complex system with multiple attractors creating fascinating orbital interactions and chaotic patterns.

Strange Attractor

Update: June 28, 2026 Update, one-shot ("add a third attractor") using Gemini Pro 3.1. Gemini chose a strange attractor with a more chaotic and unpredictable pattern, creating a mesmerizing visual effect. The particles are influenced by multiple attractors, resulting in complex orbital interactions and dynamic trails that evolve over time.


2026. In dreams we're free, awake we strive.