Skip to main content
100%

Cantor Set

✓ Published0🌍 Public
Sswvogt
Last edited Jan 14, 2020
Created on Jan 14, 2020
Forked from Cantor Set

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 description

The Cantor Set computed as an L-System and rendered using React.

MIT Licensed

Similar vizzes