ⓘ 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: drawPixmap

drawPixmap(s, x, y) draws the pixmap named s (a string representing a valid identifier of a pixmap variable) at the point (x, y) in the current 2D visualization window. (x, y) is given in the visualization window's logical coordinates.

drawPixmap(s, x, y, fmt) draws the pixmap using the style (CSS) fmt.

Possible parameters for fmt:
   box-origin: top-left, top-center, top-right, middle-left, middle-center, middle-right, bottom-left, bottom-center, and bottom-right specifies what point on the pixmap is to be located above (x, y).

Example: drawPixmap("ball", 0, 0, "box-origin: middle-center") if "ball" is a previously defined pixmap.