Thursday, January 22, 2009

Bezier Curves assignment

This was an interesting assignment; we were assigned to redo our makeLine() method from a previous homework, so that it took a single parameter (t). From that, we had to make it draw a linear, quadratic, and cubic line.

Below are some animated screenshots of two different outputs that I experimented with. Below those pictures is my actual source code.
The program itself lets you click on the screen to select your points. I recommend clicking on the image to see a larger version of the picture, which also has a higher quality.
To access the application, click on this link and select yes when prompted to open the bezier.jar file.






The source code is located here

1 comment:

  1. Okay, cool, I got the line to become a curve to 2 points, excellent :)

    ReplyDelete