Segments
Length
Area
Fractal dimension

More information about the Koch snowflake

Koch snowflake generator

Take a triangle. Cut every side into three, and raise a smaller triangle on the middle third. Do the same to every one of the twelve new sides, and again, and again. The result is the Koch snowflake: a shape with a finite area inside a border of infinite length. Grow it one level at a time and watch each bump fold up out of its segment, then bend the rules: point the bumps inwards, change their angle, or use squares instead of triangles, and see how the length, the area and the fractal dimension respond.

How it works

  1. Press Play to grow the snowflake one level at a time, or Step to add a single level; drag Level to jump to any level.
  2. Choose a generator, a starting shape and whether the bumps point outwards or inwards, and set the angle of the triangle bump.
  3. Read the number of segments, the length, the area and the fractal dimension in the tiles.

Infinite border, finite area

Every round turns each segment into 4 segments, each a third as long, so the perimeter is multiplied by 4/3. After 10 rounds it is more than 17 times the triangle's, after 50 rounds more than 1.7 million times, and it never stops growing.

The area grows too, but by less and less: each round adds 4/9 as much as the round before, and the total settles at exactly 8/5 of the starting triangle. The whole snowflake fits inside the circle through the triangle's corners, however long its border becomes.

Fractal dimension

Shrink the Koch curve to a third and you need 4 copies to rebuild it. A line would need 3 and a square 9, or \(3^{1}\) and \(3^{2}\); the exponent is the dimension. For the Koch curve \(3^{d}=4\), so \(d=\log 4/\log 3\approx 1.262\): more than a line, much less than a surface.

Raise the angle of the bump and the pieces get longer, so fewer are needed to fill a larger part of the plane: at 85° the dimension is about 1.8. The square bump gives \(\log 5/\log 3\approx 1.465\) and the Minkowski sausage exactly 1.5.

Using the app

Every round replaces each straight segment with a bent copy of the generator. Press Play to grow the snowflake level by level and watch each new bump fold up out of the segment beneath it, or Step to grow one level.

Change the generator, the starting shape and the direction of the bumps, and set the angle of the bump to turn the snowflake into a Cesàro curve. The tiles give the number of segments, the length, the area and the fractal dimension.⁣

Frequently asked questions

How can a shape have an infinite perimeter but a finite area?

The perimeter is a sum of lengths that are multiplied by 4/3 every round, so it grows without limit. The area is a sum of ever smaller triangles: each round adds 4/9 of what the round before added, and such a sum stops at a finite total, here 8/5 of the starting triangle.

The border becomes ever more crinkled without ever moving far from where it started.

What is the anti-snowflake?

The same construction with every bump pointing inwards. Each round now takes area away instead of adding it, and the area settles at 2/5 of the triangle, while the perimeter grows by 4/3 every round exactly as before. The shape pinches into chains of ever smaller snowflakes that run out to the three corners of the triangle.

What does the angle of the bump do?

At 60° the four pieces are equal thirds and the bump is an equilateral triangle: the classic Koch curve. A smaller angle gives a flatter bump and a dimension closer to 1; a larger angle makes the pieces longer and the curve crowds more of the plane, with a dimension of \(\log 4/\log (2+2\cos \theta)\).

Ernesto Cesàro studied these curves in 1905. At 90° the pieces would be half the segment and the curve would fill a triangle completely.

Why does the Minkowski sausage keep the same area?

Its generator goes up by a square and then down by an equal square, so every round adds exactly as much area on one side of each segment as it removes on the other. The border doubles in length every round, but the area inside stays the same as the square it started from.

What is the fractal dimension of the Koch snowflake?

About 1.2619, which is \(\log 4/\log 3\). Each round replaces every segment with 4 copies at a third of its length, and a shape made of N copies shrunk by a factor r has dimension \(\log N/\log r\). The curve is more crinkled than a line but fills no area. The Fractal dimension tile shows the value for every generator.

科赫雪花產生器: how do I record a video?

Press the red Record button in the playback bar: it films what the stage shows. Press it again to stop, and the video is saved to your device.Recording is free; you only need to sign in. Without a subscription the video carries a small PictorX logo in a corner.The button beside Record opens the video options: the shape (as shown, square, story 9:16 or wide 16:9), the length (until you stop, or 5, 10, 15 or 30 seconds for social media) and the file: MP4, WebM or an animated GIF.You can add one of three music tracks: calm, bright or beat.

Ready to try it?

Open PictorX in your browser — no install, no credit card required to start.

前往編輯器