Pattern
2015-08-02, post № 52
programming, Pygame, Python, #art, #backgroud, #color, #colors, #diamond, #entities, #entity, #gradient, #move, #movement, #moving, #pipes, #wallpaper
Using colors and entities, this program can generate some nice-looking pictures. The entities move randomly across the screen, always staying in a grid layout. Their color is defined by an increasing tick variable, which gives them a nice gradient.
Controls
- ‘Space’ spawns in new entities,
- ‘m’ pauses and resumes the movement of entities.
Source code: pattern.py