角柱体
合格名称:manim.mobject.three\_d.three\_dimensions.Prism
| Python | |
|---|---|
Bases: Cube
直立长方体(或长方体)。由格式中每边的长度定义。[x, y, z]
参数
Dimensions ( Sequence [ int ] ) – Prismin 格式的维度。[x, y, z]
例子
示例:ExamplePrism
| Python | |
|---|---|
方法
generate_points |
创建 的侧面Prism。 |
属性
animate |
用于对 的任何方法的应用程序进行动画处理self。 |
animation_overrides |
|
color |
|
depth |
对象的深度。 |
fill_color |
如果有多种颜色(对于渐变),则返回第一个颜色 |
height |
mobject 的高度。 |
n_points_per_curve |
|
sheen_factor |
|
stroke_color |
|
width |
mobject 的宽度。 |
generate_points()
创建 的侧面Prism。
返回类型
None