Skip to main content
100%

Fork of SVG Fundamental

✓ Published0🌍 Public
Aankacha
Last edited Dec 31, 2025
Created on Dec 31, 2025
Forked from SVG Fundamental

This example demonstrates how SVG masks can selectively reveal or hide parts of overlapping shapes. It creates two circular masks—one filled red for horizontal stripes and another inverted with a white background and black circle for vertical stripes. Using the D3.js `selection` module for logging, the code builds 40 horizontal and vertical rectangles via the DOM API, applying each mask URL to alternate stripe orientations. The result is a crosshatch pattern formed by masked rectangles over a full-screen SVG, showcasing mask composition and reuse.

AI-generated description
MIT Licensed

Similar vizzes