Omnimaga
Calculator Community => TI Calculators => Axe => Topic started by: collechess on December 06, 2011, 06:08:50 pm
-
How do you draw curves in axe?
-
To draw a curve, you could either calculate the position of each pixel, and use the pixel commands to plot them. Or alternatively, calculate the positions of several points along the curve and connect them with lines. The closer together the points, the more accurate the drawing, but since the screen it pretty course, you would probably be able to get away with relatively low accuracy.
-
I once made a Bezier curve drawer (http://ourl.ca/4129/186296) based off of an algorithm I found here: http://freespace.virgin.net/hugo.elias/graphics/x_bezier.htm (http://freespace.virgin.net/hugo.elias/graphics/x_bezier.htm).
To elaborate on Builderboy's point, you could calculate the the precise locations of the points by either stepping through an equation such as a parabolic or sinusoidal one, or alternatively use an algorithm such as the Bezier curve (which I guess is sort of like stepping through an equation, except cooler.)