The Visual Module of VPython

VPython is the Python programming language plus a 3D graphics module called "Visual" developed by David Scherer. This reference document describes all of the Visual capabilities. Be sure to study the discussion of the cylinder object in detail, because much of what is said there applies to other objects as well. To invoke the Visual module, place the following statement at the start of the file:

from visual import *

Basic Display Objects

      cylinder label
      arrow frame: combining several objects into one
      cone Additional Attributes: visible, frame, display, class, members
      sphere Convenient Defaults
      ring Rotating an Object
      box Specifying Colors
      curve Limiting the Animation Rate
      convex Floating Division: 3/4 is 0, but 3./4. is 0.75 in Python

Vector Computations

Plotting Graphs of Functions or Data

Windows and Mouse Interactions

The factorial and combin Functions

VPython documentation was produced by Ruth Chabay, David Scherer, and Bruce Sherwood, of Carnegie Mellon University.