Skip to main content
100%

Full Sol LeWitt in d3 v2

✓ Published1🌍 Public
TTobi Olabode
Last edited Nov 7, 2023
Created on Nov 6, 2023

This example recreates a Sol LeWitt drawing as a grid of thin horizontal and vertical lines, with two circular masks revealing different layered compositions. The code builds an SVG scene using D3 v5’s `select`, `range`, and `join` to generate the lines, and `symbol` with `symbols[5]` to create the triangle-shaped masks. It demonstrates importing from D3 via UNPKG and local ES6 modules, rendering entirely through SVG attributes and mask definitions.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.

Test Heading

MIT Licensed

Similar vizzes