Skip to content

Pretty Math Pictures

Cool math pictures with Python 3

The Very Best Fractal & Mathematical Pictures

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
Rainbow Flag in Pygame

Rainbow Flag in Pygame

This little Pygame program paints the Rainbow Flag, as used by the LGBT movement. It illustrates:

  • Importing the Pygame library
  • RGB colours in hexadecimal
  • Python’s for loop using the enumerate() function
  • Filling a rectangular area in Pygame
  • Updating display
…
Mandrian 29th June 2015
A Fake Circle made of Straight Lines

A Fake Circle made of Straight Lines

Inspired by this post on Reddit, I wrote this little script to do the same thing. The circle is an illusion created by 100 straight-line tangents to an invisible circle. The tangents are created by drawing a chord in a …

Mandrian 15th June 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
© 2023 Pretty Math Pictures | Designed by: Theme Freesia | Powered by: WordPress