pyramid¶
- pyramid(pos=vec(0, 0, 0), axis=vec(1, 0, 0), color=color.green)¶
- Parameters:
pos (vector) – Position of center. Default <0,0,0>.
axis (vector) – Extends from base to point. Default <1,0,0>.
color (vector) – Default color.white
length (scalar) – Magnitude of axis. As created by default, along x-axis.
height (scalar) – By default, y-dimension of base.
width (scalar) – By default, z-dimension of base.
size (vector) – Alternative to length, height, width. Default <1,1,1>
Attributes used less often:
- pyramid(opacity=0.5, shininess=0.2, texture=textures.wood, make_trail=True, canvas=mycanvas, emissive=False)
- Parameters:
opacity (scalar) – Default 1.0; Range 0-1.
shininess (scalar) – Default 0.6; Range 0-1.
emissive (boolean) – Default False. Object glows, losing all shading, if True.
texture (class element or path) – Default None.
visible (boolean) – If False, object is not displayed. Default: True
canvas (object) – Default is scene.
make_trail (boolean) – If True, object leaves a trail when moved. See Attaching a Trail for more options.
up (vector) – A vector perpendicular to the axis.
group (object) – The group to which this object belongs.