## Fractal of polygons

The fractal we will now draw is formed of a polygon, with little polygons on each corner. The prototype of the method drawing it is the following:

    [!java|c]void [/!]polygonFractal ([!java|c]int [/!]levels[!scala]:Int[/!], [!java|c]int [/!]sides[!scala]:Int[/!], [!java|c]double [/!]length[!scala]:Double[/!], [!java|c]double [/!]shrink[!scala]:Double[/!])

Have a look at each world's objective view to understand how to write the function.