Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Smiley Face Part I - lisarnjs

Public visualization

Smiley Face Part I - lisarnjs

0 stars0🌍 Public
권권은서
Last edited Feb 25, 2022
Created on Feb 24, 2022
Forked from HTML Starter

This example renders a smiley face using React and D3’s `arc` generator, drawing SVG shapes onto a 960×500 canvas. A pink circle forms the head, with two small black circles for eyes and a thick, semi-circular mouth created via the `arc` path’s inner and outer radii. The code computes the head radius from the viewport height and stroke width, then positions the facial features relative to a centered `<g>` transform. It uses React 17 for component structure and `d3.arc` for path generation, all rendered as SVG elements.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed