There is (currently) no points object in the GlowScript environment, so make_trail uses spheres. The trick I used to make thin curves is harder to exploit in the case of these spheres, so currently their size is determined by the size of the moving object.Incidentally, note that one of the big advantages of the GlowScript environment is that it is possible to fix things immediately for all users, whereas with classic VPython, even if a new version is created quickly (which isn't easy) you won't get the benefit unless you explicitly install that new version. Cloud computing has its points.
--
You received this message because you are subscribed to a topic in the Google Groups "VPython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vpython-users/SCjG40kpWyA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vpython-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'll add the following to the first page of the VPython Help at glowscript.org, and I hope I can upgrade the conversion program to deal with this:Another word about vectors: In the GlowScript environment pos, size, axis, color, and up are all vectors, and they are somewhat special vectors that track changes in order to trigger correct rendering of the 3D scene when one of these object attributes changes. One result of this structure is that ball.pos += vector(1,2,3) must be rewritten as ball.pos = ball.pos + vector(1,2,3). This is something the conversion program should probably be able to deal with, but it doesn't at the moment.
--
As is true in classic VPython 6.10, there must be a rate statement in the animation loop. The format is rate(30) for 30 iterations per second. Your program would freeze up in classic VPython 6.10, too.
--
--
You received this message because you are subscribed to a topic in the Google Groups "VPython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vpython-users/SCjG40kpWyA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vpython-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I've improved the GlowScript documentation concerning widgets (buttons, sliders, pulldown menus).
--
You received this message because you are subscribed to a topic in the Google Groups "VPython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vpython-users/SCjG40kpWyA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vpython-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "VPython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vpython-users/SCjG40kpWyA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vpython-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You're correct - vertically for the graphs, but I sometimes want to have that graph stack alongside another window, whether that's text, buttons, or animation.
Thanks,
jg
I'm puzzled by the word "stacking". I would have thought that "stacking three graphs" would mean "put them one on top of each other, vertically". But I gather you're trying to put them side by side? Or have I misunderstood?
--
Run VPython programs in a browser!Now in GlowScript (glowscript.org) you can write and run VPython programs. Although there are some restrictions, many existing VPython programs can run in a browser, which means that you can send a link to a colleague who can immediately run your program without installing Python and VPython. It also means that students can write and run VPython programs using existing programming instructions and without installing anything, though one must use a modern browser and a modern graphics capability (GPU). I'll mention that the 4th edition of the textbook "Matter & Interactions", available in January, includes explicit instruction in VPython.You cannot import Python modules such as numpy, nor create your own modules to import.Here are examples of VPython programs that run in either classic VPython or in GlowScript (when reading the program you can click "Run this program" to execute the program):More demo programs in VPython will be added to the examples at glowscript.org.In addition to classic VPython and this new browser VPython at glowscript.org, a third way to run a VPython program is in an IPython notebook, in a browser, thanks to the ivisual module created by John Coady.A few VPython objects are not currently available in GlowScript: convex, extrusion (and the paths and shapes libraries), faces, frame, and the 3D text object. For details, see http://www.glowscript.org/docs/VPythonDocs/index.html.Please report bugs!Bruce