Cantor Set
✓ Published0🌍 Public
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 descriptionThe Algae L-System rendered using React.
MIT Licensed