Skip to main content
100%

stroke-width

✓ Published0🌍 Public
Zzoniyac
Last edited Apr 22, 2020
Created on Apr 22, 2020
Forked from line-size

This example demonstrates the visual impact of varying stroke widths on a simple pattern. It presents five white squares, each filled with vertical line textures of increasing thickness, from one to nine pixels, while the squares’ own black outlines also grow in width. The visualization is built using D3.js (v5) and the `textures` library, specifically calling `textures.lines().orientation().strokeWidth()` to generate each pattern within an SVG canvas. The code directly manipulates SVG `rect` and texture attributes to create a clear comparative scale.

AI-generated description
MIT Licensed

Similar vizzes