It may seem that everyday interaction with a computer mouse is a routine and unremarkable activity. But what if it were possible to transform these routine movements into something more—something that creates a unique visual representation of computer work? Thanks to code that tracks the mouse cursor’s position and the color of the pixel beneath it, this idea can become a reality.
How does it work?
This code tracks where the mouse cursor is on the screen and what color the pixel beneath it is. This information is then transferred in real time to a virtual canvas with a resolution matching that of the screen. Whenever the mouse moves, the code renders a pixel with the color that was directly beneath the cursor at the position where the cursor was located. This means that as you work and move around on the screen, colorful trajectories are created on the canvas. These trajectories are unique and represent the user’s work and interaction with the computer.
What happens after a while?
If this process runs long enough, the canvas begins to fill up and the trajectories become less noticeable. Instead, most of the canvas begins to look like pseudo-random noise. However, there are certain areas of the screen that do not change much over time. This could be, for example, the Windows taskbar, where software icons are located. These areas on the canvas remain more or less the same.