Trippy

Using the extended pygame graphics function pygame.gfxdraw, this program creates randomly colored trippy circles. There are 100 circles, which get redrawn every 100 ticks (~ 1.6 seconds).
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 August, 2015

Continue reading

Advertisements

Gradient Drawer

This is more of an artistic program. By left-clicking you set a fix point and define a random color. Where you then move your mouse, the program will draw 100 circles in between the fix point and the cursor position. By right-clicking you save those 100 circles on the canvas. Holding the right mouse button is possible.

Controls

  • Left clicking sets or removes a fix point
  • Right clicking saves current circles on canvas
  • ‘s’ saves current canvas
  • ‘c’ clears current canvas

The First Example The Second Example The Third Example The Fourth Example The Fifth Example


# Python 2.7.7 Code
# Pygame 1.9.1 (for Python 2.7.7)
# Jonathan Frech 4th of July, 2015

Continue reading

Colors VI

This sixth version of my ‘Colors’ program has only a few improvements. At first it uses a different method to change the individual pixels. Instead of using ‘pygame.PixelArray()’ it calls on the surface ‘.set_at()’. Also you get an indicator if it has finished drawing (to be seen in the caption). At last it always – not needing a user input – saves the drawing if it is finished.
To get more information on my ‘Colors’ program, see ‘Colors V’.

Image 1 Image 2 Image 3


# Python 2.7.7 Code
# Pygame 1.9.1 (for Python 2.7.7)
# Jonathan Frech 23rd of March, 2015
#         edited  2nd of April, 2015
#         edited 20th of May  , 2015

Here goes the ‘getColor()’ function.
Continue reading