Colors

The little pixel guy comes across a grey world and starts coloring it.
Coloring a whole world...

Rotating Squares

Using the pygame.transform.rotozoom() function, a velocity argument and changing colors, this program rotates squares across the screen.

Controls

  • Left click spawns in a new square at current mouse position
  • Space takes a screenshot

The first example The second example The third example


# Python 2.7.7 Code
# Pygame 1.9.1 (for Python 2.7.7)
# Jonathan Frech 27th of November, 2015
#         edited  2nd of January , 2016

Continue reading

Mandelbrot Set

Working with complex numbers and iterating the function f_c(z) = z^2 + c, I created this program which lets you explore the depth of this self-repeating fractal. The different colors are caused by different color schemes.

Controls

  • Left mouse click and mouse movements control the zoom frame
  • Middle mouse click zooms in
  • Space takes a screenshot
  • F1 moves a zoom back
  • F2 zooms to default zoom

Mandelbrot set from afar [-6.75, -4.5] to [6.75, 4.5] An eye in the Mandelbrot set [-0.17466172461436666, -1.0720840874732396] to [-0.1746617232046618, -1.0720840865334365] A gap in the Mandelbrot set [-0.16101577503429365, -1.0369693644261544] to [-0.16019958847736634, -1.0364252400548697]Another gap in the Mandelbrot set [0.25, -0.04999999999999982] to [0.40000000000000036, 0.04999999999999982]A spiral in the Mandelbrot set [0.18276898469650216, -0.5821251321730682] to [0.18311316336591232, -0.5818956797267948]


# Python 2.7.7 Code
# Pygame 1.9.1 (for Python 2.7.7)
# Jonathan Frech  4th of December, 2015
#         edited  5th of December, 2015
#         edited 11th of December, 2015

Continue reading