Draw a sphere: Difference between revisions

(→‎{{header|Python}}: ==={{libheader|Pygame}}===)
Line 2,977:
 
==={{libheader|VPython}}===
 
...
{{works with|Python|2.7.5}}
<lang python>
from __future__ import print_function, division
from visual import *
 
title = "VPython: Draw a sphere"
 
scene.title = title
print( "%s\n" % title )
 
print( 'Drag with right mousebutton to rotate view' )
print( 'Drag up+down with middle mousebutton to zoom')
 
scene.autocenter = True
 
S1 = sphere(pos=(0.0, 0.0, 0.0), radius=1.0, color=color.blue)
 
while True: # Animation-loop
rate(100)
pass # no animation in this demo
</lang>
 
=={{header|Racket}}==
Anonymous user