sphere()

A sphere is a hollow ball made from tessellated triangles.

Examples

example picture for sphere()
1
2
3
4
5
6
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 Java method: sphere

Syntax

sphere(r: float, /) -> None

Parameters

  • r: float - the radius of the sphere

Updated on September 11, 2021 16:51:34pm UTC