hp
toc

Boxes

2015-05-31, post № 34

programming, Pygame, Python, #background, #beautiful, #black, #box, #boxes, #changing, #color, #color change, #colors, #creating, #fancy, #gap, #generates, #generator, #pattern, #pseudo random, #random, #rectangles, #visual

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.

boxes-2.png
boxes-3.png
boxes-10.png
boxes-11.png
boxes-6.png
Source code: boxes.py
Jonathan Frech's blog; built 2024/04/13 20:55:09 CEST