sphere()

Shape / 3D Primitives

Description

Draws a sphere. Use sphereDetail() to control tessellation. Must be in P3D mode.

Syntax

void sphere(float r)

Parameters

NameTypeDescription
rfloatradius of the sphere

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...