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

Text Spinner

This program lets you input text and spins it around the center!

Controls

  • Text input (alphabet, space and punctuation) inputs text
  • F1 takes a screenshot

Hello world.JBlog!a**2 + b**2 = c**2

 


# Python 2.7.7 Code
# Pygame 1.9.1 (for Python 2.7.7)
# Jonathan Frech 17th of November, 2015
#         edited 20th of November, 2015

Continue reading

Spiral

Inspired by a recent Slow Mo Guys video, I wrote a simulation for the shown effect. I think it looks pretty neat…

Controls

  • Up arrow increases the number of emitted particles
  • Down arrow decreases the number of emitted particles
  • Space saves a screenshot

Two particle emissions Six particle emissions A lot of particle emissions


# Python 2.7.7 Code
# Pygame 1.9.1 (for Python 2.7.7)
# Jonathan Frech 23rd of October, 2015
#         edited 24th of October, 2015

Continue reading