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
Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.