Skip to main content
100%

Let's Make a Face Part I

✓ Published0🌍 Public
Aassafali
Last edited Nov 15, 2020
Created on Nov 15, 2020

This example draws the first step toward a smiley face in a 960 by 500 pixel SVG canvas. It renders a large yellow circle with a black stroke as the head, plus two smaller unfilled circles positioned as the eyes. The code uses raw SVG elements—`circle` tags with explicit `cx`, `cy`, and `r` attributes—within an embedded `index.html` file, with no external JavaScript libraries. The placement of the eyes is computed from the canvas center and a fixed offset, though the coordinates are written directly as attributes.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes