sphere()#

A sphere is a hollow ball made from tessellated triangles.

Examples#

example picture for sphere()
1def setup():
2    py5.size(100, 100, py5.P3D)
3    py5.no_stroke()
4    py5.lights()
5    py5.translate(58, 48, 0)
6    py5.sphere(28)

Description#

A sphere is a hollow ball made from tessellated triangles.

Underlying Processing method: sphere

Syntax#

sphere(r: float, /) -> None

Parameters#

  • r: float - the radius of the sphere

Updated on November 12, 2021 11:30:58am UTC