Koch snowflake
Start with an equilateral triangle. Split every side into three equal parts, build a smaller equilateral triangle outwards on the middle part and remove its base. Every side becomes four segments a third as long. Repeat with every segment, forever. After n steps a triangle with the side s has
The perimeter grows without limit, while the area stays finite and tends to 8/5 of the starting triangle. Each side is made of four copies of itself at a third of the size, which gives the fractal dimension
History
The Swedish mathematician Helge von Koch described the curve in 1904. The title of his paper promised a continuous curve without a tangent, obtained by an elementary geometric construction. Mathematicians already knew such curves from the formulas of Karl Weierstrass, but they were hard to imagine; Koch's construction made the idea easy to draw. The snowflake is three of his curves joined around a triangle.
Interesting facts
- The curve has a corner at every scale, so it has no tangent at any point, even though it never breaks.
- An infinitely long border encloses a finite area: the snowflake fits in the circle around the starting triangle.
- Measuring it with a shorter ruler always gives a longer result. Lewis Fry Richardson found the same for real coastlines, and Benoit Mandelbrot used this result in his 1967 paper "How Long Is the Coast of Britain?"
- Bumps built inwards instead of outwards give the anti-snowflake.
- The first step turns the triangle into a six-pointed star, and the outline never leaves the hexagon around that star.
How Image89 draws it
Image89 draws the outline as a dark blue line on white, with round joins at the corners. The preset depth is 5, which gives 3072 segments. Segments shorter than a pixel would only blur, so the depth drops for small images until every segment is at least a pixel long:
where s is the side of the triangle in pixels. The line is 0.4% of the shorter side of the
image wide, but at least one pixel. The snowflake is fitted without distortion, with a margin of 5% of
the shorter side plus half the line. The preset is in the [types.koch] section of the
config.