1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="GENERATOR"
content="Adobe FrameMaker 5.5/HTML Export Filter">
<link rel="STYLESHEET" href="VisualRef.css" charset="ISO-8859-1"
type="text/css">
<title>The Visual Module of VPython</title>
</head>
<body bgcolor="#ffffff">
<div class="navigation">
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tbody>
<tr>
<td><a href="../index.html"><img src="icons/previous.gif"
border="0" height="32" alt="Previous Page" width="32"></a></td>
<td><a href="../index.html"><img src="icons/up.gif" border="0"
height="32" alt="Up One Level" width="32"></a></td>
<td><a href="cylinder.html"><img src="icons/next.gif" border="0"
height="32" alt="Next Page" width="32"></a></td>
<td align="center" width="100%">Visual Reference</td>
<td><a href="../index.html"><img src="icons/contents.gif"
border="0" height="32" alt="Contents" width="32"></a></td>
<td><img src="icons/blank.gif" border="0" height="32" alt=""
width="32"></td>
<td><img src="icons/blank.gif" border="0" height="32" alt=""
width="32"></td>
</tr>
</tbody>
</table>
<b class="navlabel">Previous:</b> <a class="sectref"
href="../index.html">VPython Documentation</a> <b class="navlabel">Up:</b>
<a class="sectref" href="../index.html">VPython Documentation</a> <b
class="navlabel">Next:</b> <a class="sectref" href="cylinder.html">The
cylinder Object</a> <br>
<hr></div>
<p class="Heading-1" align="center"><font size="+2"><b><font
color="#ff0000"> <font size="+3">The Visual Module of VPython</font></font></b></font></p>
<p class="Normal"> VPython is the Python programming language plus a 3D
graphics module called "Visual" developed by David Scherer. This
document describes all of the Visual capabilities. To invoke the Visual
module, place the following statement at the start of the file:</p>
<blockquote>
<div>
<div>
<h2 class="program0"> from visual import *</h2>
</div>
</div>
</blockquote>
<div>
<div>
<p><a href="VisualIntro.html">Introduction</a>: for those new to Python
and Visual</p>
<p><font color="#0000a0"><b>Basic Display Objects</b></font></p>
<p><font color="#0000a0"><a href="cylinder.html">cylinder</a> <font
color="#000000">Start here: much of what is said here applies to other
objects as well.</font></font></p>
</div>
</div>
<table width="550" border="0" hspace="0" bordercolorlight="#FFFFFF"
bordercolordark="#FFFFFF">
<tbody>
<tr>
<td width="113"> <a
href="arrow.html">arrow</a></td>
<td width="427"><a
href="label.html">label</a></td>
</tr>
<tr>
<td width="113"> <a
href="cone.html">cone</a></td>
<td width="427"><a
href="frame.html">frame</a>: combining several objects into one</td>
</tr>
<tr>
<td width="113"> <a
href="pyramid.html">pyramid</a></td>
<td width="427"><a
href="faces.html">faces</a>: low-level object for special purposes</td>
</tr>
<tr>
<td width="113"> <a
href="sphere.html">sphere</a></td>
<td width="427"><a
href="options.html">Additional Attributes: visible, frame, display, class, members</a></td>
</tr>
<tr>
<td width="113"> <a
href="ring.html">ring</a></td>
<td width="427"><a
href="defaults.html">Convenient Defaults</a></td>
</tr>
<tr>
<td width="113"> <a
href="box.html">box</a></td>
<td width="427"><a
href="rotation.html">Rotating an Object</a></td>
</tr>
<tr>
<td width="113"> <a
href="ellipsoid.html">ellipsoid</a></td>
<td width="427"><a
href="color.html">Specifying Colors</a></td>
</tr>
<tr>
<td width="113"> <a
href="curve.html">curve</a></td>
<td width="427"><a
href="delete.html">Deleting an Object</a></td>
</tr>
<tr>
<td width="113">
<div align="left"> <a
href="helix.html">helix</a></div>
</td>
<td width="427"><a
href="rate.html">Limiting the Animation Rate</a></td>
</tr>
<tr>
<td> <a
href="convex.html">convex</a></td>
<td><a
href="float.html">Floating Division</a>: 3/4 is 0, but 3./4. is 0.75 in Python</td>
</tr>
</tbody>
</table>
<p><font color="#0000a0"><b>Vector Computations</b></font></p>
<ul>
<li><a href="vector.html">vector</a>, including mag, mag2, norm,
cross, dot, rotate, diff_angle<br>
</li>
</ul>
<p><font color="#0000a0"><b>Plotting Graphs of Functions or Data</b></font></p>
<ul>
<li><a href="graph.html">Graph Plotting</a>: gcurve, gdots, etc.</li>
</ul>
<p><font color="#0000a0"><b>Windows, Mouse, and Keyboard Interactions</b></font></p>
<ul>
<li><a href="display.html">Controlling Windows</a>: display windows,
lighting, and camera position</li>
<li><a href="mouse.html">Mouse Interactions</a></li>
<li><a href="keyboard.html">Keyboard Interactions</a></li>
<li><a class="sectref" href="controls.html">Controls</a>: buttons,
sliders, toggle switches, and pull-down menus</li>
</ul>
<div>
<p><font color="#0000a0"><b>The factorial and combin Functions</b></font></p>
<ul>
<li><a href="factorial.html">factorial & combin</a>: N! and
a!/(b!*(a-b)!)</li>
</ul>
<p class="Normal">VPython documentation was produced by Ruth Chabay,
David Scherer, and Bruce Sherwood.</p>
</div>
<br>
<hr>
<div class="navigation">
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tbody>
<tr>
<td><a href="../index.html"><img src="icons/previous.gif"
border="0" height="32" alt="Previous Page" width="32"></a></td>
<td><a href="../index.html"><img src="icons/up.gif" border="0"
height="32" alt="Up One Level" width="32"></a></td>
<td><a href="cylinder.html"><img src="icons/next.gif" border="0"
height="32" alt="Next Page" width="32"></a></td>
<td align="center" width="100%">Visual Reference</td>
<td><a href="../index.html"><img src="icons/contents.gif"
border="0" height="32" alt="Contents" width="32"></a></td>
<td><img src="icons/blank.gif" border="0" height="32" alt=""
width="32"></td>
<td><img src="icons/blank.gif" border="0" height="32" alt=""
width="32"></td>
</tr>
</tbody>
</table>
<b class="navlabel">Previous:</b> <a class="sectref"
href="../index.html">VPython Documentation</a> <b class="navlabel">Up:</b>
<a class="sectref" href="../index.html">VPython Documentation</a> <b
class="navlabel">Next:</b> <a class="sectref" href="cylinder.html">The
cylinder Object</a> <br>
<hr></div>
</body>
</html>
|