Skip to main content
100%

Point and Shoot

✓ Published1🌍 Public
MMartin Blatz
Last edited Oct 1, 2020
Created on Sep 12, 2020
Forked from Mouse Follower

A red target circle and crosshairs follow the mouse cursor across an SVG canvas, tracking movement through React's `useState` and `useCallback` hooks. The example uses React 16.9 and ReactDOM to render the `Target` component, which draws the circle and two perpendicular lines with configurable stroke widths and ratio. The code includes an empty `onClick` handler that logs the event, preparing to record shot holes in the `holes` state array, though no drawing occurs on click yet.

AI-generated description

A program that follows your mouse with a circle. Forked and unchanged (other than this readme) from Professor Kelleher's profile.

Working towards turning the circle into a target, then drawing something upon mouse click.

MIT Licensed

Similar vizzes