Skip to main content
100%

quilt block (random texture)

✓ Published0🌍 Public
Aannabsmylie
Last edited Sep 29, 2016
Created on Sep 29, 2016

This example generates a 50-by-30 grid of colored and textured rectangles, forming a quilt-like pattern where vertical bands define colors and horizontal bands define texture patterns. The visualization uses D3 v4 with SVG rendering, plus the textures library to create circle and path-based patterns. A nested ordinal scale maps three color categories from ColorBrewer to three texture generators, applying each texture in each color. The code initializes texture definitions using D3’s selection `.call` method, then binds grid data to rectangles positioned in a fixed 25-pixel cell layout.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/annabsmylie/'>annabsmylie</a>'s block: <a href='http://bl.ocks.org/annabsmylie/0ad5c50200d5ef47a0129b99b1db004c'>quilt block</a>

mit Licensed

Similar vizzes