Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Tony Colston
Tony Colston

Posted on

     

mandelbrot with turtles and Python

I used Python turtles to draw an image of the madelbrot set.

Here is the code I found on the internet that does the math part.
https://www.codingame.com/playgrounds/2358/how-to-plot-the-mandelbrot-set/mandelbrot-set

But I wanted to draw this with a turtle.

All of my code is here in this gist
https://gist.github.com/tonetheman/806a4fe0924af085d614557c0ccb85e3

It is fairly slow to run and the UI locks up... but it will make a nice picture.

Crazy that you do this in turtle (though not too quickly).

And here is the image that the code will output
picture of mandelbrot set fractal

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

cofounder of CrossBrowserTesting.com. uber nerd. ui challenged. gamdev
  • Location
    Memphis
  • Work
    former founder/Development Manager at CrossBrowserTesting.com
  • Joined

More fromTony Colston

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp