ⓘ This web page is about the old AlgoSim 2 software. Perhaps you are looking for the new Algosim 3 application?
AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: drawText

drawText(s, x, y) draws the text s (a string) in the 2D visualization window, at (screen) coordinates (x, y), by default the top-left corner of the text rectangle.

drawText(s, x, y, fmt) draws the text s (a string) in the 2D visualization window, at (screen) coordinates (x, y), by default the top-left corner of the text rectangle, using the style (CSS) fmt.

Example: drawText("Graphs", 10, 10, "colour:red; text−size:20")