box()

本参考资料用于Processing 3.0+。 如果你使用的是前一版本,请在使用软件帮助菜单内的参考资料。. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.

名称

box()

示例
 size(100, 100, P3D);

translate(58, 48, 0);

rotateY(0.5);

noFill();

box(40);

 size(100, 100, P3D);

translate(58, 48, 0);

rotateY(0.5);

noFill();

box(40, 20, 50);

描述 A box is an extruded rectangle. A box with equal dimensions on all sides is a cube.
语法
box(size) box(w, h, d)
参数
size float: dimension of the box in all dimensions (creates a cube)
w float: dimension of the box in the x-dimension
h float: dimension of the box in the y-dimension
d float: dimension of the box in the z-dimension
返回值 void
相关 sphere()

Updated on October 2, 2018 05:02:08pm EDT

box()