cone¶
- cone(pos=vec(5, 2, 0), axis=vec(3, 0, 0), radius=1, color=color.cyan)¶
- Parameters:
pos (vector) – Position of base of cone. Default <0,0,0>.
axis (vector) – Extends from base to narrow end. Default <1,0,0>.
color (vector) – Default color.white
length (scalar) – Length of cone. Magnitude of axis. Default is 1.
radius (scalar) – Radius of base of cone. Default is 1.
size (vector) – Dimensions of a box surrounding the cone. An alternative to length and radius. Allows an elliptical base. Default is <1,2,2>.
Attributes used less often:
- cone(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.