Cantor Set
✓ Published2🌍 Public
This example visualizes the Cantor Set as a grid of thin horizontal bars, showing how the set’s structure emerges from repeated subdivision. It is computed using an L-System with production rules applied over ten iterations, and rendered as SVG rectangles via React. The code uses d3’s `scaleBand` for positioning and `range` for iteration, with each rectangle colored or filtered based on the symbol `A`. The visualization highlights the classic fractal pattern of removing middle thirds, generated entirely through string rewriting and geometric mapping.
AI-generated descriptionThe Cantor Set computed as an L-System and rendered using React.
MIT Licensed