Education/Projects/ProcessingForTheWeb/sphereDetail
< Education | Projects | ProcessingForTheWeb
Summary
This is a function written for Education/Projects/ProcessingForTheWeb. This function controls the detail used to render a 3D sphere. The default resolution is 30, which creates a fairly detailed sphere definition with vertices every 360/30 = 12 degrees. This function only needs to be called once as the setting stay active until it is called again. View official Reference
Examples
void setup()
{
size(500,500,OPENGL);
}
void draw()
{
background(128);
sphereDetail(15,15);
sphere(1);
}
Syntax
| Description | |
|---|---|
| sphereDetail(res); | |
| sphereDetail(ures, vres); |
Parameters
| Description | |
|---|---|
| res | int: number of segments (minimum of 3) used per full circle revolution |
| ures | int: number of segments used longitudinally per full circle revolution |
| vres | int: number of segments used latitudinally from top to bottom |
Returns
nothing
Bugs
Refer to the reference of each function for a specific bug report.
| Bug Description | Fixed?(Date) |
|---|---|
Tests
This test requires a web browser with WebGL enabled. If needed download Mozilla Nightly ~ Minefield
| Test | Location |
| All get() functionality | sphereDetail(15,15) |