Lesson - Sol LeWitt reproduction
✓ Published1🌍 Public
This example reproduces a Sol LeWitt-style drawing using raw SVG elements generated through JavaScript. It creates a full-screen SVG canvas and populates it with one hundred vertical rectangles, each 10 pixels wide, spaced 20 pixels apart, filling the viewport’s height. The code uses the Document API’s `createElementNS` to programmatically construct SVG `<rect>` nodes and appends them to the document body, with CSS setting the fill to black. The result is a minimalist, grid-like pattern of evenly spaced black bars across the screen.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed