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

drawSphere(r) draws a sphere of radius r > 0 and midpoint ❨0, 0, 0❩ in the current 3D visualisation window.

drawSphere(v, r) draws a sphere of radius r > 0 and midpoint v ∈ R^3 in the current 3D visualisation window.

drawSphere(v, r, s) draws a sphere of radius r > 0 and midpoint v ∈ R^3 in the current 3D visualisation window using the style (CSS) s, a string.

Example: drawSphere(❨0, 0, 0❩, 5, "colour:red")