Skip to main content
100%

Shapes and Colors with SVG and CSS

✓ Published0🌍 Public
LLeandro Cruvinel Lemes
Last edited Sep 15, 2019
Created on Sep 15, 2019

This example shows a simple face made of SVG shapes, with a yellow circle for the head, black circles for eyes, and an arc-based path for the mouth. It uses D3 v5 selections and the `arc` generator to draw the mouth, while CSS sets the page background and removes margins. The SVG canvas is 500 by 500 pixels, and shapes are styled with inline fill and stroke attributes.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes