Draw a few particles

Calculate the distance between all particles

Draw a line if the distance is below 250px between two particles

Fade the lines based on the distance

Use random radii

Add more particles

Add user interactivity for more fun