You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="Normal"> The ring object has the following attributes and
default values, similar to those for cylinders: <spanclass="attribute">pos<fontcolor="#000000"> vector(0,0,0)</font></span>, <spanclass="attribute">axis<fontcolor="#000000"> vector(1,0,0)</font></span>, <spanclass="attribute">length<fontcolor="#000000"> (</font></span><fontcolor="#000000">0.2<spanclass="attribute">)</span></font>, <spanclass="attribute">color<fontcolor="#000000"> vector(1,1,1)
which is color.white</font></span>, <spanclass="attribute">red<fontcolor="#000000"> (1)</font></span>, <spanclass="attribute">green<fontcolor="#000000"> (1)</font></span>, <spanclass="attribute">blue<fontcolor="#000000"> (1)</font></span>, <spanclass="attribute">opacity</span> (1),
<spanclass="attribute">shininess</span> (0.6), <spanclass="attribute">emissive</span> (False), <ahref="../GlowScriptDocs/textures.html"><strong>texture</strong></a>, and <spanclass="attribute">up<fontcolor="#000000"> (0,1,0)</font></span>.
As with cylinders, <spanclass="attribute">up</span> has a subtle
effect on the 3D appearance of a ring unless a non-smooth texture
is specified or the ring is oval. The <spanclass="attribute">axis</span> attribute
only affects the orientation of the ring; the magnitude of the <spanclass="attribute">axis</span> attribute
of the central part of the ring, default = 1, so <br/>
outer radius = radius+thickness<br/>
inner radius = radius-thickness </p>
<pclass="attributes"><spanclass="attribute">thickness</span> The
radius of the cross section of the ring (1/10th of radius if not
specified), not the full diameter as you might
expect. </p>
<pclass="attributes"><spanclass="attribute">size</span> Instead of specifying radius and thickness, you can make the ring be oval by specifying its size as size=vector(length,height,width), with different height and width..</p>
<pclass="Normal"> Note that the <spanclass="attribute">pos</span> attribute
for cylinder, arrow, cone, and pyramid corresponds to one end of the object,
whereas for a ring, sphere, and box it corresponds to the center of the
object. </p>
<pclass="Normal">If you include <spanclass="attribute">make_trail=True</span> when you create the object, a trail will be left behind the object as you move it. For related options, see <ahref="trail.html"><strong>Leaving a Trail</strong></a>.</p>
<pclass="Normal">See <ahref="rotation.html"><strong>Rotating an Object</strong></a> for an easy way to change the orientation of an object.</p>
<pclass="Normal">See description of <ahref="options.html">Additional
Attributes</a> available for all 3D display objects.</p>