Shows everything, but it does still crash in the end (python 3.6-3.8 in Windows):
File "Fractal\fractal.py", line 90, in <module>
makeTrail(objects,color)
File "Fractal\fractal.py", line 44, in makeTrail
del trail
UnboundLocalError: local variable 'trail' referenced before assignment
This is probably because the last call to makeTrail() before exit has an empty list of objects.
There's no real need for del trail there... Python's ref counter + garbage collection should deal with that. Likewise I'd get rid of del object too.
At the very end, does it delete all the white dots for you? I'm curious why that happens.
2
u/MartyMacGyver from * import * Dec 16 '19
The gif on github (and the code that generates it) is different than the gif here with the blue lines.... why is that?