Random dots moving and connected while being close - this type of animation can be found in many places, e.g. in this Proton example.
I created this here in p5 in order to be able to play with the most important parameters, i.e. the number of dots used and the ‘cutoff distance’ up to which dots can be connected - represented by the sliders above. Unfortunately, larger number of dots and larger cutoff distance both makes the drawing quite slow.
Depending on the parameters, quite different effects can be seen: