Cantor Set
✓ Published0🌍 Public
The Cantor Set appears as a fractal ladder of horizontal black bars against a white background, with each successive row containing fewer and shorter segments. The visualization computes the set as an L-System using production rules (A→ABA, B→BBB), iterated eight times, and renders the result as SVG rectangles via React. D3’s `scaleBand` maps each symbol’s position and width, while a filter selects only A symbols for display. The code leverages React 16.10 and D3 v5, with ReactDOM rendering the final geometric pattern.
AI-generated descriptionThe Cantor Set computed as an L-System and rendered using React.
MIT Licensed