Skip to main content
100%

Random color of Mouse Follower

✓ Published0🌍 Public
Nnghosh319
Last edited May 5, 2023
Created on May 5, 2023
Forked from Mouse Follower

A React SVG application renders a circle that follows the mouse cursor, changing to a random hex color on every mouse movement. The mouse position is tracked via the `onMouseMove` event handler on the SVG element, updating state with `useState` and `useCallback`. The circle's fill color is generated using a custom `getRandomColor` function that constructs a random hexadecimal string. The visualization demonstrates interactive state management and event handling within a React component.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes