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")