box

sphere

sphere-detail

box

Arguments
[width height depth][size]
Docstring
Creates an extruded rectangle.
Works only inside sketch functions?
Yes
Original Processing method
box()

sphere

Arguments
[radius]
Docstring
Generates a hollow ball made from tessellated triangles.
Works only inside sketch functions?
Yes
Original Processing method
sphere()

sphere-detail

Arguments
[ures vres][res]
Docstring
Controls the detail used to render a sphere by adjusting the number
of vertices of the sphere mesh. The default resolution is 30, which
creates a fairly detailed sphere definition with vertices every
360/30 = 12 degrees. If you're going to render a great number of
spheres per frame, it is advised to reduce the level of detail using
this function. The setting stays active until sphere-detail is
called again with a new parameter and so should not be called prior
to every sphere statement, unless you wish to render spheres with
different settings, e.g. using less detail for smaller spheres or
ones further away from the camera. To controla the detail of the
horizontal and vertical resolution independently, use the version of
the functions with two parameters.
Works only inside sketch functions?
Yes
Original Processing method
sphereDetail()