Fork Sol LeWitt Exercise
✓ Published1🌍 Public
This example generates an abstract geometric composition inspired by Sol LeWitt, showing a grid of horizontal and vertical stripes that intersect. Two SVG masks define an elliptical region at the center; the first mask reveals the horizontal stripes within the ellipse, while the second inverts the effect for the vertical stripes. The code uses the raw Document Object Model (DOM) API with `createElementNS` to build SVG elements, setting attributes like `mask` and `fill` directly. It draws 100 rectangles in each direction, producing a layered, monochromatic pattern where the ellipse creates a focal point of contrasting stripe orientations.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed