Skip to content

Pretty Math Pictures

Cool math pictures with Python 3

This gallery showcases some of our best fractal & mathematical pictures. Start here! We have Mandelbrot & Julia Sets, Lorenz attractors, The Burning Ship, Flame fractals, Harmonographs, Buddhabrots, Menger Sponges, Sierpinskis, 3D Fractals, Fractal Zooms, Lyapunov Fracatals, etc. Oh, and …

  • Richmond Sites
    • Alan Richmond’s Blog
    • Fractal Art Links
    • Neil Richmond Photography
    • Mark Richmond (Facebook)
  • About…
    • Fractals
    • Permissions
Drawing Fractals with Lindenmayer Systems

Drawing Fractals with Lindenmayer Systems

Lindenmayer systems, or L-systems, provide a very powerful way to construct fractals. Lindenmayer used L-systems to describe the behaviour of plant cells and to model the growth processes of plant development. An L-system is a rewriting system and a …

Mandrian 17th June 2015
Tweetable Python Code Golf

Tweetable Python Code Golf

Code Golf is the amusement of writing as short as possible a program to perform a given task. So for example, if the task is to compute the average of a list of numbers (which could be changed at any …

Mandrian 9th June 2015
Fast Mandelbrot Set by QuadTree

Fast Mandelbrot Set by QuadTree

Most Mandelbrot Set programs proceed along the display area, pixel by pixel horizontally, row by row from top to bottom. This one doesn’t. It divides up the screen into 6 horizontal squares in 2 rows, then for each one, checks …

Mandrian 27th May 2015
Sierpinski Triangle, drawn by a Turtle

Sierpinski Triangle, drawn by a Turtle

This is a classic fractal drawn with a recursion algorithm and Turtle graphics. The Sierpinski Triangle’s sides are bisected and the triangle they form is removed. The procedure is then applied to the 3 remaining triangles, and to them recursively …

Mandrian 18th April 2015
Naive Mandelbrot Set

Naive Mandelbrot Set

This is your basic Mandelbrot Set plotter. Very little effort made to speed it up, except for plotting top & bottom pixels together as they’re mirrored across the x-axis. Later I’ll show you some much faster programs!

The heart of …

Mandrian 17th April 2015
Fractal Tree

Fractal Tree

This program draws a ‘tree’ by drawing a trunk (initially; later it’s a branch) and appending a tree, recursively. Uses Pillow.…

Mandrian 17th April 2015
© 2023 Pretty Math Pictures | Designed by: Theme Freesia | Powered by: WordPress