Skip to main content
100%

Cantor Set

✓ Published0🌍 Public
CCurran Kelleher
Last edited Oct 26, 2019
Created on Oct 26, 2019
Forked from Cantor Set

This visualization renders the Cantor set, a fractal generated by an L-system with production rules A→AB and B→A, iterated 80 times. It displays each iteration as a horizontal band of SVG rectangles, where only segments corresponding to symbol 'A' are drawn, revealing the characteristic recursive pattern of gaps. The implementation combines React for declarative SVG rendering with D3.js utilities, using `d3.range` for iteration generation, `d3.scaleBand` for positioning and sizing, and the `reduce` method to flatten nested data structures.

AI-generated description

The Algae L-System rendered using React.

MIT Licensed

Similar vizzes