Education/Projects/ProcessingForTheWeb/sphere: Difference between revisions
< Education | Projects | ProcessingForTheWeb
Jump to navigation
Jump to search
(Created page with '== Summary == This is a function written for Education/Projects/ProcessingForTheWeb. It draws a 3D image in the browser's canvas tag. [http://processing.org/reference/spher…') |
|||
| Line 18: | Line 18: | ||
} | } | ||
<br><br> | <br><br> [[Image:Sphere.jpg]] | ||
=== Syntax === | === Syntax === | ||
Revision as of 22:56, 16 December 2009
Summary
This is a function written for Education/Projects/ProcessingForTheWeb. It draws a 3D image in the browser's canvas tag. View official Reference
Examples
void setup()
{
size(500,500,OPENGL);
}
void draw()
{
background(128);
sphere(1);
}
Syntax
| Description | |
|---|---|
| sphere(radius) | draws a sphere with the given radius |
Parameters
| Description | |
|---|---|
| radius | int or float: the radius of the sphere |
Returns
nothing
Bugs
Refer to the reference of each function for a specific bug report.
| Bug Description | Fixed?(Date) |
|---|---|
Tests
| Test | Location |
| Sphere & SphereDetail | sphere |
