short attention span
home
luminance
project blogs
documentation
video clips
behind the screen
links
contact us


A modified version of the wandering dots, in this case with the dots programmed to be attracted to the cursor. In this case the pertinent equation is:

if(distance < 120 && distance > 10){
vx+=(force/distance)*(xDif/distance);
vy+=(force/distance)*(yDif/distance);
}
This allows the trajectory of the dots to be altered rather than the absolute position, creating the illusion of intertia.

back to Behind the Screen

Last Update Date: March 15, 2005



Creative Commons License
This work is licensed under a Creative Commons License.