Sierpiński arrowhead curve
See Wikipedia.
Sierpiński curves are a recursively defined sequence of continuous closed plane fractal curves discovered by Wacław Sierpiński, which in the limit completely fill the unit square: thus their limit curve, also called the Sierpiński curve, is an example of a space-filling curve. Because the Sierpiński curve is space-filling, its Hausdorff dimension (in the limit is
The Euclidean length of the th iteration curve is
i.e., it grows exponentially with beyond any limit, whereas the limit for of the area enclosed by is that of the square (in Euclidean metric).
This is the second line fractal I created using the production rules. I created a function that can be passed a formula to execute. See Rewriting and L-system.
The production rules for this curve is:
Alphabet: F, G, X Constants: F, G, +, − Axiom: F−−XF−−F−−XF Production rules: X → XF+G+XF−−F−−XF+G+X Angle: 45
Here, both F and G mean "draw forward", + means "turn left 45°", and − means "turn right 45°" (see turtle graphics). The curve is usually drawn with different lengths for F and G.