Skip to main content
100%

shape1

✓ Published0🌍 Public
AAnshul Rawat
Last edited Dec 24, 2023
Created on Dec 20, 2023

This visualization uses D3 version 7.8.5 to render 100 horizontal and vertical rectangular bars as SVG shapes on a full-window canvas. The horizontal bars are layered with vertical bars, and each set is masked using SVG `<mask>` elements with D3's `symbols` API—the horizontal bars use a mask with black symbols on white, while the vertical bars apply an inverted mask with white symbols on black. The code constructs masks via a custom `renderMask` function that populates each mask with D3's built-in symbol paths (such as circles, crosses, and diamonds) at scaled 8000-pixel sizes, creating a geometric crosshatch pattern through the bar intersections.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes