You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One would think, for instance, that a sphere ought to take a radius argument of type float/int, but as things stand that wont work. One could add an argument 'size' of the appropriately scaled vector whenever one sees a brython sphere() with argument 'radius'?
The text was updated successfully, but these errors were encountered:
From the page it seems the size vectors x,y,z component are same as
diameter of sphere .. So in the sphere constructor we could add a size
vector
vec (2,2,2)*kwargs['radius']
whenever kwargs has radius arg but no size arg..
I could take a stab and send a pull request
On 6 May 2015 03:55, "Billy Earney" [email protected] wrote:
I'd be willing to add a radius argument. How would one translate a radius
to a size vector?
—
Reply to this email directly or view it on GitHub #29 (comment)
.
If we want to have the brython-glow interface look closer to vPython than glowscript we need to consider the notes at http://www.glowscript.org/docs/GlowScriptDocs/VPython-vs-GlowScript.html
One would think, for instance, that a sphere ought to take a radius argument of type float/int, but as things stand that wont work. One could add an argument 'size' of the appropriately scaled vector whenever one sees a brython sphere() with argument 'radius'?
The text was updated successfully, but these errors were encountered: