hp
toc

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.
pattern-1.png
pattern-2.png
pattern-4.png
Source code: pattern.py
Jonathan Frech's blog; built 2024/04/13 20:55:09 CEST