Heart-Shaped Hole
✓ Published0🌍 Public
This example shows a solid gray circle with a heart-shaped hole cut out of its center. It uses an SVG `<mask>` element, where a white rectangle reveals the circle and a black heart-shaped `<path>` hides that portion. The heart is drawn using quadratic Bézier curves, and the mask is applied to the circle via the `mask` attribute in inline SVG. The code runs directly in a bare-bones HTML page without any external JavaScript libraries.
AI-generated descriptionA bare minimum HTML page.
MIT Licensed