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

Cubic Bézier curves demo - 1.1

David (animatinator)

Tags:

Description

My attempt at implementing cubic Bézier curves in Pygame. You can drag the points around with the mouse, and use the up and down arrow keys to move the little blob thingy along the path (a quick example of Bézier curves being used as paths). Use the C key to toggle the blob-thing on and off, and the D key to show or hide funky intermediate lines (used in calculating the points on the curve).

Changes

A quick minor update; now you can drag the curve (I used an incredibly hackish method of checking the distance between the mouse and various points along the curve for this :P).

Links

Home Page: http://www.pygame.org
Source: http://www.pasteall.org/6296/python

Screenshot


click to view original size

Releases

Cubic Bézier curves demo - 1.1 - Jun 24, 2009
Cubic Bézier curves demo - 1.0 - Jun 22, 2009

Pygame.org account Comments

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

June 24, 2009 1:52am - Chandler Armstrong - nickname: (omnirizon) - 5/5
beautiful. this is very needed.
June 22, 2009 7:17pm - Francesco Mastellone - nickname: (effeemme)
Nice! What about splines?
June 22, 2009 7:01pm - Ian Mallett - nickname: (geometrian)
Cool!
spotlight

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

Sep 17, 2014

Sep 9, 2014

Sep 8, 2014

Sep 7, 2014


Sep 5, 2014

Aug 26, 2014

Aug 21, 2014


Aug 18, 2014

Aug 2, 2014

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