Re: Plotting Fractals Step by Step with Python

1 · Ezequiel Leonardo Castaño · Aug. 23, 2020, 1:15 p.m.
1. Thank you!2. The line is draw by the turtle package so it you should check the color, pencolor and fillcolor methods to check what is what you actually need. More info at the docs3. There might be a more efficient way but currently I save the canvas as .ps (a format similar to PDF) and then I use a CLI tool like "Image Magick Convert" to convert that to a PNG. The key here is the following:cv = t.getscreen().getcanvas()cv.postscript(file="filename.ps", colormode='color')...