Mouse Follower
✓ Published0🌍 Public
A mouse-controlled circle follows the cursor across an SVG canvas, changing its fill color randomly with every mouse movement. Built with React and D3, the component tracks client coordinates through an `onMouseMove` handler and updates the circle’s `cx`, `cy`, and `fill` attributes via state. The example demonstrates reactive SVG rendering with D3’s `rgb` color generator.
AI-generated descriptionA program that follows your mouse with a circle
MIT Licensed