Snow flake

We will now draw snow flakes using the Koch fractal. A fractal is a geometric pattern repeated at every scale.

The general form is a triangle, with each side given by several recursive calls. Your work is only to write the code of the snowSide method so that it draws one side of the triangle. To make it easier, each sides are represented in a specific color. Just draw the red things (without changing your pen color), and the other colors will be drawn automatically.

Observe the drawing in each world's objective to understand the pattern's logic, and then reproduce it. At level 0, the Koch curve is just a straight line. At level 1, the curve is divided in three thirds, and the middle part is replaced by the two sides of an equilateral triangle of the same length as the segment being removed. At level 2, the process is repeated, whith each segments split in three parts and the middle part being replaced by the two sides of an equilateral triangle.

Here are the results of the first levels of recursion.

You must write the snowSide() method, which is recursive but do not call snowFlake from snowSide, or you will get very strange and unexpected behaviors.