首页 > 文档 > box()立方体
2017
07-29

box()立方体

Name

box()立方体

   

Examples

box()立方体 - 第1张  | Processing编程艺术

size(100, 100, P3D);

translate(58, 48, 0);

rotateY(0.5);

noFill();

box(40);

box()立方体 - 第2张  | Processing编程艺术

size(100, 100, P3D);

translate(58, 48, 0);

rotateY(0.5);

noFill();

box(40, 20, 50);

Description

A box is an extruded rectangle. A box with equal dimensions on all sides is a cube.

框是拉伸矩形。在所有边都有相等立方体是正方体。

Syntax

box(size)

box(w, h, d)

Parameters

size

float: dimension of the box in all dimensions (creates a cube)
浮点数: 在所有维度中边的尺寸 (创建多维数据集)

w

float: dimension of the box in the x-dimension

浮点数:X边的尺寸

h

float: dimension of the box in the y-dimension

浮点数:y边的尺寸

d

float: dimension of the box in the z-dimension

浮点数:z边的尺寸

Returns

Void

Related

sphere()



最后编辑:
作者:卡萨布兰卡
这个作者貌似有点懒,什么都没有留下。

留下一个回复

你的email不会被公开。