sphere()

sphere()#

A sphere is a hollow ball made from tessellated triangles.

Examples#

example picture for sphere()

def setup():
    py5.size(100, 100, py5.P3D)
    py5.no_stroke()
    py5.lights()
    py5.translate(58, 48, 0)
    py5.sphere(28)

Description#

A sphere is a hollow ball made from tessellated triangles.

Underlying Processing method: sphere

Signatures#

sphere(
    r: float,  # the radius of the sphere
    /,
) -> None

Updated on March 06, 2023 02:49:26am UTC