Dots and Lines

Dots and Lines is a simple 2D particle simulation created in Processing. All dots are attracted by a global gravity that forces them to the center. Simultaneously they push away each other and act as attractor for the other dots, too.

You can interact by click-dragging the dots and moving them around near other dots or by hitting space to randomly attract all dots at once. Also you can change the dot count via the up and down arrow keys (25 particles max). For the keyboard shortcuts to work you need to click on the canvas once.

Source Code Run Sketch
Open-source license: GNU General Public License
Built with Processing and Processing.js


Leave a Reply

Your email address will not be published. Required fields are marked *