Drawing beziers?

BlitzMax Forums/BlitzMax Programming/Drawing beziers?

Diordna(Posted 2004) [#1]
See title - how do I draw bezier curves?


LeisureSuitLurie(Posted 2004) [#2]
Plot or drawline. :P


wedoe(Posted 2004) [#3]
http://www.blitzbasic.com/codearcs/codearcs.php?code=170

It's B3D but the function at the bottom should work fine in BM too.


ImaginaryHuman(Posted 2004) [#4]
Umm, nice code n'all ... you can use OpenGL to draw bezier curved splines as well, but that was the one chapter in `the red book` on OpenGL that I found to be too confusing to follow. You set up an `evaluator` and feed it some numbers and it spews out vertexes at various steps along the spline. But like I said, it wasn't explained well so you might be better off with the above routine.


Diordna(Posted 2004) [#5]
Works like a charm! Thanks a lot! I'll post my improved version when I release my "library of random extra functions," which includes word$, getpixel, a more forgiving "graphics" command, a distance algorithm shortcut, and an enableLineSmoothing command. Some were gathered from various posts by other people but most are by me.