# RGraph: A text function that does horizontal and vertical alignment (and spins)

RGraph.Text() is a text drawing function that allows vertical and horizontal alignment, and allows you to specify the angle of the text too. The animation is done by a simple gobal variable, setTimeout() and redrawing the entire canvas every frame. Perhaps not the most efficient of methods, but remember that your Javascript will likely be running on computers that have more processing power than some small countries... Reset the page

In a similar vein you could easily make some text that bounces from one side of the screen to the other, hurrah - the return of <marquee>!

More examples can be found on the individual example pages, and a more complete reference to the Text() function can be found in the API docs.