Drawing beziers?
BlitzMax Forums/BlitzMax Programming/Drawing beziers?
| ||
See title - how do I draw bezier curves? |
| ||
Plot or drawline. :P |
| ||
http://www.blitzbasic.com/codearcs/codearcs.php?code=170 It's B3D but the function at the bottom should work fine in BM too. |
| ||
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. |
| ||
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. |