OT: Mouse trails

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
Windows has a setting in control panal allowing "mouse trails" either on or off, and the length of the trail can be set as well.

How would this "trailing" be represented mathmatically? My guess is by taking the derivative of mouse velocity and obtaining acceleration. The greater the acceleration, the greater number of trailers..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Much simpler : for arbitrary moves like the mouse cursor's ones, the X-Y coordinates of every sprite of the trail are the previous ones of its predecessor . This is achieved by shifting the array of coordinates and giving new values to the first element in each animation cycle.
Very interesting for programming a "snake" game on a graphical LCD !!!

Quote:
The greater the acceleration, the greater number of trailers..

I never noticed that.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It just waits a set period of time before removing the previously drawn images.

Thus if you move it slowly you might get 3 different positions in the period of time. If you move it wuickly you get a whole bunch drawn before the time period elapses and they are removed.

Of course each image has its own timer so the old ones disappear individually now all at once.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I noticed around here the mouse trails get longer if I leave cheese in the garage.
BaDoomp! Crash! Thanks! I'll be here all week! Drive home carefully!

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Now that's funny!

Please note - this post may not present all information available on a subject.