Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,18 @@
from visual import *
scene.title = "VPython: Draw a rotating cube"
scene.range = 2
scene.autocenter = True
print "Drag with right mousebutton to rotate view."
print "Drag up+down with middle mousebutton to zoom."
deg45 = math.radians(45.0) # 0.785398163397
cube = box() # using defaults, see http://www.vpython.org/contents/docs/defaults.html
cube.rotate( angle=deg45, axis=(1,0,0) )
cube.rotate( angle=deg45, axis=(0,0,1) )
while True: # Animation-loop
rate(50)
cube.rotate( angle=0.005, axis=(0,1,0) )