Pastel

This program uses two positions and a color to create beautiful images.

Usage

  • ‘q’ saves the current image
  • Space pauses and resumes the image’s creation

Different colors Only using red Only using red and blue


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

Continue reading

JClock IV

Combining the built-in pygame function pygame.draw.arc() with time, I came up with this alternative clock design.
The red arc represents hours, the green one minutes, the blue seconds and the white arc represents centiseconds (a hundredth of a second).
Although it is a clock, you read it anti-clockwise.

The clockface


# Python 2.7.7 Code
# Pygame 1.9.1 (for Python 2.7.7)
# Jonathan Frech 2nd of August, 2015

Continue reading

Pattern

Using colors and entities, this program can generate some nice-looking pictures. The entities move randomly across the screen, always staying in a grid layout. Their color is defined by an increasing tick variable, which gives them a nice gradient.

Controls

  • Space spawns in new entities
  • ‘m’ pauses and resumes the movement of entities

Only a few entites Diamond shape Really messy


# Python 2.7.7 Code
# Pygame 1.9.1 (for Python 2.7.7)
# Jonathan Frech 21st of May, 2015
#         edited 28th of July, 2015 
#          * commenting
#          * moving entity.tick() into render()
#          * removing unnecessary functions
#         edited 29th of July, 2015
#          * commenting
#          * improvement of code

Continue reading