JSBasics
✓ Published0🌍 Public
This example recreates a Sol LeWitt-inspired geometric composition using JavaScript and D3.js, where vertical and horizontal stripes intersect around a circular mask. The visualization shows a grid of thin black and white lines forming a cross-hatched pattern with a central circular cutout. The code builds SVG elements dynamically using `document.createElementNS`, applying two different masks (`circle-mask` and `circle-mask-2`) to reveal or hide the stripes. D3 v7 is loaded but the rendering relies entirely on raw SVG manipulation rather than data binding or scales.
AI-generated descriptionBuilding the Sol Lewitt art using JS in the Vizhub platform We can find a lot of Sol's art here
MIT Licensed