Inspired by a pattern on a storage box I own I decided to try program something simulating it. This program shows variously colored boxes with a black gap in between. You can adjust the box size, the gap size and even how many boxes will appear on the screen (all changeable in the code).
The pattern will be newly generated every half a second.
# Python 2.7.7 Code # Pygame 1.9.1 (for Python 2.7.7) # Jonathan Frech 28th of May, 2015