Shapes with SVG
✓ Published0🌍 Public
This example demonstrates how to build and render basic SVG shapes, showing a large red circle centered on a 960x500 canvas. It serves as a tutorial on using JavaScript objects, arrays, and modules, with the HTML embedding a static SVG element while a linked `bundle.js` (generated by Rollup) manages the dynamic behavior. The page includes a large `<pre>` element for displaying messages and uses minimal styling via `styles.css`, which hides overflow. The code relies on standard SVG circle attributes (`cx`, `cy`, `r`, `fill`) and a plain JavaScript setup without external libraries.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed