pygame is
Simple DirectMedia Layer is
Site Swing
Bezier Loop

Bezier Loop - 1.1

Sean McKean (asona)



This demo displays a set of continuous, randomly generated bezier loops, with an optionally specified image blended in the background. A number of options can be specified on the command-line.


CHANGLOG: v1.1: Updated to work with pygame v1.8.1, and made the alpha value that blends with the background image to change by function cosine instead of linearly.


Home Page:


click to view original size


Bezier Loop - 1.1 - Aug 13, 2008
Bezier Loop - 1.0 - Aug 11, 2008 account Comments

If you wish to leave a comment with your account, please sign in first.

August 12, 2008 6:57pm - Sean McKean - nickname: (asona)
I think this is caused by pygame 1.8.1, while I developed the program in pygame v1.8.0 . It can be fixed by replacing the 'color_x' lines with:
color_x = ''.join([chr(pygame.Color(color_name_x)[q]) for q in range(3)])

I'll provide a patch when I get home from work.
August 12, 2008 3:15pm - pymike - nickname: (pymike)

Traceback (most recent call last):
File "/home/michael/Desktop/bezier_loop_exe/", line 301, in <module>
main = Main(fname, ScreenSize, ScreenFlags)
File "/home/michael/Desktop/bezier_loop_exe/", line 166, in __init__
self.back_sfc = CreateSequenceSfc(size, ('cyan', 'black'))
File "/home/michael/Desktop/bezier_loop_exe/", line 52, in CreateSequenceSfc
color_a = ''.join([chr(q) for q in pygame.Color(color_name_a)[: 3]])
TypeError: sequence index must be integer, not 'slice'

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Oct 1, 2015

Sep 11, 2015

Sep 6, 2015

Aug 26, 2015

Aug 25, 2015

Aug 21, 2015

Aug 16, 2015

Jul 30, 2015

Jun 24, 2015

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)