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
Feb 21, 2017

Jan 31, 2017

Jan 24, 2017

Jan 18, 2017

Jan 7, 2017

Dec 30, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

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