🌍 Public
sol lewitt
This example renders a simple generative art piece in the browser using only the DOM API for SVG. It creates 100 vertical rectangles across the full width and height of the viewport, each with a fixed width of 10 pixels, producing a striped pattern. The code also builds an SVG `mask` element, though it is left incomplete, so the mask does not affect the final visual. No external libraries are used; instead, it relies on `document.createElementNS` to construct the SVG elements directly.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed








Comments
Sign in to join the discussion.