Koch Snowflake Fractal | 🎵 : Effort by ANBR

Sdílet
Vložit
  • čas přidán 6. 05. 2024
  • Imagine you're creating a Koch snowflake, a stunning fractal pattern. You start with a simple triangle, let's call it "ptriangle," as your initial shape. Here are the coordinates for the ptriangle:
    ptriangle = [ 0 0
    0.5 sqrt(3)/2
    1 0
    0 0 ]
    This triangle serves as the starting point for your snowflake.
    Now, to build the intricate details of the snowflake, you use another shape called the "pflake." This shape has a more complex structure and consists of five points arranged in a specific way. Here are the coordinates for the pflake:
    pflake = [ -1 0
    0 0
    0.5 sqrt(3)/2
    1 0
    2 0 ]
    You take this pflake and place it onto the points of the ptriangle. Then, you repeat this process, placing pflake onto the points of the new shapes you create, again and again, in a recursive manner. With each iteration, the snowflake grows more intricate and detailed, following the rules set by the pflake.
    In essence, the ptriangle is where you start, and the pflake is what you use to add complexity and detail, repeating its pattern to build the mesmerizing Koch snowflake.
  • Krátké a kreslené filmy

Komentáře • 5