box()
Shape / 3D PrimitivesDescription
A box is an extruded rectangle. Use in P3D mode. A box with equal dimensions is a cube.
Syntax
void box(float size)
void box(float w, float h, float d)
Parameters
| Name | Type | Description |
|---|---|---|
| size | float | dimension of the box in all directions |
| w | float | width |
| h | float | height |
| d | float | depth |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...