pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Bézier curves

Bézier curves - 1.0

Francesco Mastellone (effeemme)

Tags:

Description

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)

Links

Home Page: http://www.youtube.com/user/eFFeeMMe
Source: http://www.box.net/shared/untemq144w

Releases

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

Pygame.org account Comments

If you wish to leave a comment with your pygame.org 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)
Sure!
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 ;)
spotlight

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


Oct 20, 2014

Oct 16, 2014

Oct 9, 2014

Oct 8, 2014

Oct 7, 2014

Oct 4, 2014

Oct 1, 2014

Sep 19, 2014

Sep 17, 2014

Sep 9, 2014

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