Education/Projects/ProcessingForTheWeb/box
< Education | Projects | ProcessingForTheWeb
Jump to navigation
Jump to search
Summary
This is a function written for Education/Projects/ProcessingForTheWeb. This function draws a 3D box on the screen.View official Reference
Examples
void setup()
{
size(500,500,OPENGL);
}
void draw()
{
background(128);
box(10,10,10);
}
Syntax
| Description | |
|---|---|
| box(size) | |
| box(width, height, depth) |
Parameters
| Description | |
|---|---|
| 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
nothing
Bugs
Refer to the reference of each function for a specific bug report.
| Bug Description | Fixed?(Date) |
|---|---|
Tests
This test requires a web browser with WebGL enabled. If needed download Mozilla Nightly ~ Minefield
| Test | Location |
| All get() functionality | box |
