Gradient Triangles

This program uses vector mathematics and colors to create triangular gradient. By simply left-clicking you create three points which then will be filled in with color.

Controls

  • Left click adds a new position
  • Space saves a screenshot

A nearly filled canvas Scattered triangles Colors like autumn


# Python 2.7.7 Code
# Pygame 1.9.1 (for Python 2.7.7)
# Jonathan Frech  6th of October, 2015
#         edited  9th of October, 2015
#         edited 10th of October, 2015

Continue reading

Sand

This program lets you watch grains of sand fall. The grains shift in color, according to the color algorithm assigned. You also can build bridges to change the sand’s falling behavior.

Controls

  • Left clicking spawns in new grains of sand
  • Right clicking draws a bridge
  • Space saves a screenshot

Black and white piles Differently shaded piles A randomly colored pile


# Python 2.7.7 Code
# Pygame 1.9.1 (for Python 2.7.7)
# Jonathan Frech 4th of October

Continue reading