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

Bézier curves - 1.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)


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
Nov 17, 2015

Nov 12, 2015

Nov 11, 2015

Nov 8, 2015

Oct 16, 2015

Oct 9, 2015

Sep 11, 2015

Sep 6, 2015

Aug 26, 2015

Aug 25, 2015

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