Py5Graphics.sphere()

A sphere is a hollow ball made from tessellated triangles.

Description

A sphere is a hollow ball made from tessellated triangles.

This method is the same as sphere() but linked to a Py5Graphics object. To see example code for how it can be used, see sphere().

Underlying Java method: PGraphics.sphere

Syntax

sphere(r: float, /) -> None

Parameters

  • r: float - the radius of the sphere

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