Bookmark and Share


I called this repulsion because the lines try to go away from the mouse pointer. Well actually all lines are touching the mouse pointer but a circle with the same color as the background (white in this case) is drawn over and it follows the mouse, so it gives the desired illusion. The end x,y point of each line is = mouse x,y respectively so we dont have to compute the end point of each line, therefore we are saving some processor resources.

This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.

Source code: Repulsion

Built with Processing