FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Name  

box()

   
Examples  
translate(58, 48, 0); 
rotateY(0.5); 
box(40); 
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()
 
 






   
 
Updated: Fri Jul 15 16:35:33 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info