Overview
Introduction
The Koch anti-snowflake takes the same construction as the famous Koch snowflake, an equilateral triangle with a bump rule applied to every side, and simply flips the direction of every bump so it folds inward instead of outward.
The result is a concave, pinwheel-like fractal that shares the outward snowflake's self-similar structure and infinite perimeter but reads visually as almost the opposite shape.
What Is Generate a Koch Anti-snowflake?
A fractal curve formed the same way as the standard Koch snowflake, starting from an equilateral triangle and repeatedly replacing every straight segment with 4 shorter segments, except the middle two segments of each replacement fold inward toward the shape's center rather than bulging outward.
It's a documented variant of the Koch snowflake construction, sometimes also called the Koch antisnowflake, distinct from an arbitrary made-up shape, the inward-bump rule is a recognized alternative to the standard outward one.
How Generate a Koch Anti-snowflake Works
The tool starts from the outline of an equilateral triangle, three straight segments, exactly like the standard Koch star. At each iteration, every straight segment in the current outline is replaced with 4 new segments, the first third, an inward-folding notch made of two segments meeting at a point inside the shape, and the final third.
This inward-folding replacement is applied simultaneously to every segment in the shape, so the number of segments quadruples with each iteration while each new segment is a third the length of the one it replaced, mirroring the standard Koch star's growth rate exactly.
Repeating this down to the chosen Iterations count produces an increasingly detailed, concave outline that carves further into the original triangle's area with every round.
When To Use Generate a Koch Anti-snowflake
Use it whenever you want the inward-folding Koch variant specifically, for math visualizations, generative art, or teaching material contrasting outward versus inward fractal bump rules.
If you want the classic outward-bulging snowflake instead, use Koch Star Generator, or if you want a similar bump rule applied to a hexagon base, use Koch Polyflake Generator.
Often used alongside Generate a Koch Star, Generate a Koch Polyflake and Generate a Sierpinski Hexagon.
Features
Advantages
- Implements a real, documented Koch variant rather than an arbitrary invented shape.
- Produces a visually distinct, concave silhouette that contrasts clearly with the standard outward Koch star.
- Same predictable quadrupling growth rate as the standard Koch snowflake, easy to reason about at any iteration count.
Limitations
- Iterations is capped at 6, past that the inward notches become shorter than can be rendered legibly at typical export sizes.
- Only the inward-bump rule is offered here, for the standard outward snowflake, use Koch Star Generator instead.
Examples
Best Practices & Notes
Best Practices
- Start at Iterations 2 or 3 to see the emerging concave silhouette clearly before increasing further.
- Use the SVG export if you plan to scale the curve up significantly, the vector path stays crisp at any size.
Developer Notes
Built on the shared L-system turtle engine using the "koch-anti-snowflake" preset: axiom `F++F++F` (the same equilateral-triangle start as the standard Koch star) with production rule `F -> F+F--F+F` at a 60-degree turning angle, the sign flip on the middle turns relative to the standard `F-F++F-F` rule is what folds each bump inward instead of outward. Iterations is bounded to 0-6 by the preset's `maxIterations`.
Generate a Koch Anti-snowflake Use Cases
- Math and fractal geometry visualizations contrasting outward versus inward Koch bump rules
- Generative art needing a concave, pinwheel-style fractal silhouette
- Educational material demonstrating how a single sign change in an L-system rule flips a fractal's geometry
Common Mistakes
- Expecting the same star-shaped silhouette as the standard Koch snowflake, the inward bump rule produces a visually inverted, concave shape instead.
- Setting Iterations to the maximum immediately, at 6 the fine inward detail is dense enough that individual notches become hard to distinguish at typical viewing sizes.
Tips
- Compare this tool with Koch Star Generator at the same Iterations value to see the outward-versus-inward difference directly.
- Download the SVG and zoom in on an edge to see the self-similar notch-within-a-notch structure directly.