Fill & Stroke
✓ Published0🌍 Public
This example demonstrates the visual difference between shapes with no fill or stroke and those with explicit white fill and black stroke. It uses raw SVG elements—`rect`, `circle`, and `path`—within an inline `<svg>` tag, with a white background rectangle covering the canvas. The top row shows unadorned shapes, while the bottom row applies `fill="white"` and `stroke="black"` with a thick `stroke-width` to highlight the contrast. The code is plain HTML/SVG, with no external libraries, and renders directly in the browser.
AI-generated descriptionLesson 2 SVG
MIT Licensed