cone()

Cone - Draws a cone in 3D space

Example

Syntax

Parameter
Description

radius

radius of the cone

height

height of the cone

cap

a boolean to specify whether or not the cone should be closed with a cap

Example Full Code
Example Full Code

Description

draws a cone with a specified radius and height. A cap that closes the cone is drawn by default, and can be removed by setting cap = False

Find these documents helpful? Let the people who made them help your child learn to code at Strivemath!

We'd love to hear your Feedback/Comments here.

Last updated