Hexagonal SVG gradient experiment
A grid of hexagons fills the page, each one displaying a linear gradient oriented along one of three angles, with colors randomly drawn from a dark rainbow palette. The animation progressively reveals hexagons starting from the center, growing outward in a wave-like pattern. Built with D3 v5 and SVG, the code constructs hexagon paths using trigonometric calculations and applies randomized gradient definitions through the SVG `defs` element.
AI-generated descriptionAn experiment where I wanted to randomly fill a page with hexagons. Each hexagon has its own random gradient that is randomly oriented along 3 possible angles. The colors at both ends are then also randomly chosen.
This example uses the dark rainbow color palette. Another version has the option to choose between the dark rainbow and a green color palette
Built with blockbuilder.org
forked from <a href='http://bl.ocks.org/nbremer/'>nbremer</a>'s block: <a href='http://bl.ocks.org/nbremer/7ab7995a7ebd48ad424f218a5b01d30a'>Random gradients and orientations - Hexagons - 1 palette</a>