-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|595|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Variables


 
Jayenkai
Created : 10 August 2007
 
Language : Blitz

Bezier Curves

Useful for making lines!

Create lovely Bezier curves using either of these two functions.
If you have 3 points, use Bezier3.. For 4... Well, you can figure it out!

I kept it a simple One Dimensional command, so you can use it however you like, simply by running the command separately for each dimension.


Perc is the percentage of the line you want to retrieve the value of. Then you have Point 1, where the line starts.
Point 2 is the first drag point. When using Bezier4, Point3 is the second drag point.. The last point is the end of the line.

Here's an example using both versions. Both have the same start and end points, but the second line has an additional drag point attached, pulling the curve further down the screen.


 

Comments