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

drawRect(v, ❨w, h❩) draws a rectangle at v ∈ R^2 with width w and height h in the current 2D visualization window.

drawRect(v, ❨w, h❩, s) draws a rectangle at v ∈ R^2 with width w and height h in the current 2D visualization window using the style (CSS) s.

All numbers refer to the visualization window's coordinate system.