Skip to main content
100%

Mandala Generator with D3 and SVG use

✓ Published0🌍 Public
TThanaporn-sk
Last edited May 25, 2017
Created on May 25, 2017

A mandala generator builds a symmetric, radial artwork from randomly chosen marks—arcs, points, diagonals, and arrows—arranged in 32 repeated slices around a central axis. Every click of the button produces a new composition with a fresh HSL background color. The code uses D3.js v4 to dynamically construct an SVG, defining a reference slice and then cloning it via the `<use>` element with rotation transforms to create the full circle. An optional `transition.attrTween` animates the whole group with a 360-degree spin on generation.

AI-generated description

Mandala Generator with D3 and SVG use

A playful demonstration of using svg's <use> tag to make a mandala.

forked from <a href='http://bl.ocks.org/pbeshai/'>pbeshai</a>'s block: <a href='http://bl.ocks.org/pbeshai/2395deb8b40dcdfdb6e72ee51a6df251'>Mandala Generator with D3 and SVG use</a>

mit Licensed

Similar vizzes