Triflake Curve Generator
Generate and download stunning Triflake curves containing central Koch stars and corner anti-snowflakes.
Discovering the Triflake Curve
The Triflake Curve is an extraordinary and visually rich fractal construct derived from the foundational principles of the Koch curve. Unlike a standard Koch snowflake which is built from a single outer equilateral triangle, the Triflake is composed of three connected triangles touching at their midpoints. By recursively folding the edges of these three triangles inward (applying the Koch anti-snowflake rule), the negative space created in the center naturally and elegantly blossoms into a perfect, standard Koch snowflake!
Mathematical Construction and Geometry
To mathematically construct a Triflake, we begin by defining a large equilateral triangle with vertices $V_0, V_1, V_2$ circumscribed about a center $(cx, cy)$ with radius $R$. The midpoints of the three outer sides are calculated as:
These midpoints divide the large triangle into four smaller equilateral triangles of side length $S/2$. The three corner triangles are defined as:
- Top Flake: vertices $V_0, M_{01}, M_{20}$
- Right Flake: vertices $V_1, M_{12}, M_{01}$
- Left Flake: vertices $V_2, M_{20}, M_{12}$
The remaining central negative space is an inverted downward-pointing triangle with vertices $M_{01}, M_{12}, M_{20}$. When the Koch algorithm is applied recursively inward (toward the interior of each corner triangle), each segment of length $L$ is divided into 4 segments of length $L/3$. Because the segments fold inward, the boundaries of the corner triangles recede, causing the central negative space to expand outward and form a perfect 6-pointed Koch snowflake.
Interactive Rendering Controls
This premium browser-based simulator offers extensive options to interact with and render the Triflake:
- Recursion iterations: Control the depth from 0 to 5. Depth 3 or 4 offers beautiful complex boundaries.
- Peak Orientation: Switch between "Classic Inward" (which generates the three touching anti-snowflakes and the central star) or "Spike Outward" (where the shapes spike outward and overlap).
- Rotation Slider: Rotate the entire system smoothly from $0^\circ$ to $360^\circ$.
- Flake Color Modes: Use the exclusive Tri-Color mode to paint the three corner flakes with independent, high-contrast HSL neon colors. Alternatively, use gradient streams, rainbow hues, or solid strokes.
- Download Assets: Export high-resolution PNG snapshots, vector SVGs for scalable graphic designs, or mathematical JSON coordinate lists.
Frequently Asked Questions
What makes the Triflake unique compared to a standard Koch Snowflake?
A standard Koch snowflake is built by folding lines outward from a single triangle. The Triflake is a composite fractal that arranges three separate triangles in a triad. By folding them inward (creating three "anti-snowflakes"), they collectively frame a central negative space that grows into a Koch snowflake. It is a stunning demonstration of negative space creating geometry.
Can I download the Triflake as a vector graphic?
Absolutely! By clicking the "Download SVG Vector" button, the generator outputs a fully mathematically defined SVG file with all three curves drawn as scalable, independent paths. You can import this file into vector design programs like Illustrator or Inkscape.
What is the mathematical limit of the Triflake's perimeter and area?
As iterations approach infinity, the perimeter of the three boundary curves increases by a factor of $4/3$ at each step, diverging to infinity. However, because the recursive spikes shrink exponentially, they occupy a strictly bounded plane, meaning the total area of the Triflake remains finite!
How does the "Tri-Color" color mode work?
The Tri-Color mode assigns separate, beautifully coordinated HSL neon colors (Cyan, Magenta, and Green) to each of the three corner flakes. This visual distinction clearly illustrates the independent boundaries of the three corner anti-snowflakes and highlights how they touch at their vertices to frame the central Koch star.
Related tools
Your recent visits