Skip to main content
100%

Fork of Smiley Face Part II

✓ Published0🌍 Public
CCaparino
Last edited Jun 5, 2022
Created on Jun 5, 2022

A circle follows the mouse cursor across an SVG canvas. The visualization uses React state to track the pointer's x and y coordinates via the `onMouseMove` event, updating the circle's `cx` and `cy` attributes in real time. Mouse position is captured from the event's `clientX` and `clientY` properties within a `handleMouseMove` callback, and the circle radius is fixed at 30 pixels. The rendered output is a plain black circle on a white background, with no additional data or styling.

AI-generated description

A program that follows your mouse with a circle

MIT Licensed

Similar vizzes