hp
toc

Trippy

2015-08-29, post № 59

programming, Pygame, Python, #aa, #antialiased, #black, #circles, #color, #colors, #different colors, #fade, #fading, #gfx, #gradient, #graphics, #onion, #pygame.gfxdraw()

Using the extended pygame graphics function pygame.gfxdraw [1], this program creates randomly colored trippy circles. There are 𝟣𝟢𝟢 circles, which get redrawn every 𝟣𝟢𝟢 ticks (~ 𝟣.𝟨 seconds).

trippy-1.png
trippy-2.png
trippy-7.png
Source code: trippy.py

Footnotes

  1. See the docs.
Jonathan Frech's blog; built 2024/04/13 20:55:09 CEST