pygame is
Simple DirectMedia Layer is
Site Swing
Bézier curves

Bézier curves - 2.0

Francesco Mastellone (effeemme)



It's a simple implementation of the quadratic bézier curves, with maths taken directly from wikipedia. Press up and down to move the dot along the curve. Using this to implement paths is left to you as an exercise =) (translation: Francesco is lazy and won't do that =p)


Now with cubic Bézier curves! Todo: n-complexity curves and paths.


Home Page:


Bézier curves - 2.0 - Mar 28, 2008
Bézier curves - 1.0 - Mar 28, 2008 account Comments

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

March 28, 2008 1:15pm - Francesco Mastellone - nickname: (effeemme)
Oops. It just so happens that to make paths cubic bézier curves are better. Expect those soon!
March 28, 2008 12:35pm - Francesco Mastellone - nickname: (effeemme)
It's just two lines of code after all =p
To everyone: a wrong version was up for two hours before I uploaded this one, it used the same gameApp module but rather represented the projection of a point onto a line. Redownload in case you got that!
March 28, 2008 12:32pm - Francesco Mastellone - nickname: (effeemme)
March 28, 2008 12:27pm - Ian Mallett - nickname: (geometrian)
Very Nice! Can I use it in PAdLib?
March 28, 2008 9:31am - Francesco Mastellone - nickname: (effeemme)
PS: I do plan to add them in PolyPlay ;)

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
May 27, 2016

May 22, 2016

May 21, 2016

May 18, 2016

May 1, 2016

Mar 27, 2016

Mar 26, 2016

Mar 22, 2016

Mar 19, 2016

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