Jonathan. Frech’s WebBlog

Shaper (#27)

Jonathan Frech

Playing around with randomness I came up with this program which ran­dom­ly generates various shapes. It starts off with one point in the center which will start ran­dom­ly moving. By clicking on the screen you can gen­er­ate new points or remove previous ones. If the num­ber of points gets higher than 2, a monochrome polygon will be displayed (using the pygame.polygon() function).

Usage

Source code: shaper.py