Name

sphere()

Description

A sphere is a hollow ball made from tessellated triangles.

Examples

  • size(400, 400, P3D);
    noStroke();
    lights();
    translate(232, 192, 0);
    sphere(112);
    Image output for example 1

Syntax

  • sphere(r)

Parameters

  • r(float)the radius of the sphere

Return

  • void