Cesàro Fractal
Replace every line with four equal lines: the first and last continue along the old direction, and the middle two form a triangular notch. This construction starts from a square and puts the notches on the inward side.1
Angle changes the notch. The ends of the old line stay fixed, so a sharper notch needs longer lines to connect them. At 60°, each new line is one third of the old length, which is the same notch the Koch anti-snowflake uses around a triangle. At 85°, each new line is about 46% of the old length, and neighboring notches come close together.
Drag Angle to 90° and the notch closes: its two sides lie on top of each other, and each new line is exactly half the old one. Level 1 becomes a 2 by 2 grid, level 2 is 4 by 4, level 3 is 8 by 8, and one line draws all of it without lifting.2
That line walks each inner grid line twice, once in each direction. The notch always goes to the same side of the direction of travel, so the two walks put their notches on opposite sides, and together those notches make a new line across the middle of the old one. So every small square is cut into four, and the next level's grid is twice as fine.
At level 7 the grid is 128 by 128, and the picture is a solid square. Repeat forever and the line comes as close as you like to every point in the square.
Further exploring
Sources and notes
- Mark McCartney, Four variations on a fractal theme, International Journal of Mathematical Education in Science and Technology, published online 2022, section 2, equation (1). Supports the torn square construction and the length of each new line.
- Calculation. At 90°, level has lines, each of a side. In exact grid coordinates for levels 1 to 7, the walk covers all lines of an by grid with : each inner line twice, in opposite directions, and each outer line once.