sphereDetail()

Shape / 3D Primitives

Description

Controls the detail used to render a sphere by adjusting the number of vertices.

Syntax

void sphereDetail(int res)

Parameters

NameTypeDescription
resintnumber of segments (higher = smoother)

Returns

void

Related

Under the Hood

From Processing.h:

void sphereDetail(int res);

Under the Hood

From Processing.cpp:

void PApplet::sphereDetail(int r){sphereRes=r;}