Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Smile face II

Public visualization

Viewing a saved revision (read-only)

e50e4b297b084066b9fcc34130c81826

Smile face II

0 stars0🌍 Public
Jjay-chitsakdanon
Last edited Aug 31, 2021
Created on Aug 30, 2021
Forked from Smile face III

A smiley face is rendered as a single SVG circle that follows the mouse cursor across a 960-by-500 viewport. The circle’s center coordinates update on every mouse movement via React state and the `onMouseMove` event handler. The example uses React 16.9 and D3 v7’s `arc` import (though unused), with SVG rendering managed by ReactDOM. The circle starts at the center and tracks the pointer’s client coordinates in real time.

AI-generated description

A program that follows your mouse with a circle