VPython: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m fix source
Riga 40:
<syntaxhighlight lang = "python">
 
from visual import * #import the visual module
 
rod = cylinder(pos=(0,2,1), axis=(5,0,0), radius=1)
 
</syntaxhighlight>
Riga 52:
 
<syntaxhighlight lang = "python">
from visual.graph import * # import graphing features
funct1 = gcurve(color=color.cyan) # a connected curve object
for x in arange(0., 8.1, 0.1): # x goes from 0 to 8
funct1.plot(pos=(x,5.*cos(2.*x)*exp(-0.2*x))) # plot
</syntaxhighlight>