jblog
toc

Rotating Squares

2016-01-03, post № 98

programming, Pygame, Python, #2015, #color, #colorful, #rotate, #rotating, #spin, #spinning, #square, #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.
rotating-squares-2.png
rotating-squares-5.png
rotating-squares-9.png
Source code: rotating-squares.py

White Fireworks

2016-01-02, post № 97

programming, Pygame, Python, #2015, #black, #black and white, #celebration, #exploding, #explosion, #new year, #sparks, #star shape, #white

In the spirit of the new year, this program tries to mimic white fireworks exploding in the night sky.

white-fireworks-2.png
white-fireworks-5.png
white-fireworks-8.png
Source code: white-fireworks.py

Happy New Year

2015-12-31, post № 96

art, #2016, #firework, #fireworks, #gif, #happy, #happy new year, #new, #new year, #pixel, #pixel guy, #rocket, #year

Little pixel guy wishes you a happy 2016.

happy-new-year.gif
Jonathan Frech's blog; built 2021/04/16 20:21:20 CEST