Press the green flag & use the Slider for the Variable "# of sides" to show Triangle to Dodecagon Fractals. I used "# of sides" & "side length" rather than single letters in my Variables & Make Blocks. It makes the intent of the coding easier for me to understand. I changed the Pen Colour blocks because I did not understand the reason behind the calculations. Leszpio's original block is at the bottom if you want to check it out. Wielobok is Polish for Polygon I disconnected the Music. Go to Backdrop if you want to hear it and join the blocks (The Beatles - Let It Be)
The large triangle is the start and then by moving to the half way point "side Length/2" that becomes the starting point for the smaller fractal that is proportional & rotated to fit inside Here are Leszpoi's original notes for Fractal construction: 1. Plotting a regular polygon with n sides and side of the length a 2. Move by a / 2 3. Rotate clockwise through an angle of 180 / n Repeat points 1-3 substituting for a a * cos (180 / n)