Jonathan. Frech’s WebBlog

Shaper (#27)

Jonathan Frech,

Playing around with randomness I came up with this pro­gram which ran­dom­ly generates var­i­ous 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() func­tion).

Usage

Source code: shaper.py