a port of the Processing Visualization Language
Name

box()

Examples
example pic
translate(58, 48, 0); 
rotateY(0.5);
box(40);
example pic
translate(58, 48, 0); 
rotateY(0.5);
box(40, 20, 50);
Description A box is an extruded rectangle. A box with equal dimension on all sides is a cube.
Syntax
box(size)

box(width,height,depth)
Parameters
size int or float: dimension of the box in all dimensions, creates a cube
width int or float: dimension of the box in the x-dimension
height int or float: dimension of the box in the y-dimension
depth int or float: dimension of the box in the z-dimension
Returns None
Usage Web & Application
Related sphere()

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub