Skip to main content
100%

Fork of Shapes with SVG and CSS

✓ Published0🌍 Public
Aanandamayeemodak
Last edited Feb 9, 2021
Created on Feb 9, 2021

This example displays two SVG arc paths on a dark background, rendered with thick lime strokes. Using JavaScript’s `setAttribute` method, the code dynamically assigns a path description generated by the `describeArc` function, which calculates arc coordinates from center, radius, and start/end angles. The CSS styles the SVG canvas at 500 by 500 pixels and sets the stroke width and color, while the HTML document initially contains empty path elements that are populated by the script. The result is a minimal geometric composition with rounded line joins.

AI-generated description
MIT Licensed

Similar vizzes