Skip to main content
100%

Fork of make a face d3js

✓ Published2🌍 Public
GGodspower Wodi
Last edited Feb 22, 2022
Created on Feb 22, 2022
Forked from make a face d3js

This example shows a cartoon face built entirely from basic SVG shapes, using D3 v7 to create a yellow circle head, two elliptical eyes with irises, and a wavy mouth path. The code leverages D3’s `select` and `arc` APIs to generate two crescent-shaped arcs, transformed and positioned to represent drunk, half-closed eye lids. Additional shapes like `circle` and `ellipse` are appended manually, while the mouth is a hand-written path string with stroke styling, all rendered at a fixed 960×500 SVG canvas size.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes