Koch snowflakes for the holidays

By: julia on Abel Soares Siqueira

Re-posted from: https://abelsiqueira.com/blog/2018-12-12-koch-snowflakes-for-the-holidays/

Code for these images.
I hope you’re familiar with the Koch curve fractal or snowflake. It essentially consists taking a line segment, splitting it in three, and substituting the middle part by two segments that form an equilateral triangle without the base. From one segment you obtain four. For each new segment, repeat the process.
Images:
The most important aspect of the koch line is that it looks awesome. Furthermore, you can do it for any image that is a collection of segments.