I’m finding this level (polygonception) quite frustrating… if a yak has 5 or 6 sides I usually run out of memory or time before completing the level.
I finally got a run with only squares and triangles:
Based on your picture it seems like you are calling your function too many times (you are drawing one extra set of polygons per corner.) Do you have a base case that looks like
Edit: Ah, thanks @trotod - I changed it to if distance > 10: and it worked. I didn’t code it quite the same as the example and I think I was evaluating the magnitude of the vector before I’d worked out a fifth of it. Your spot helped me see it!
Also refreshing did help with memory issues, thanks @UltCombo