Education/Projects/ProcessingForTheWeb/sphere
From MozillaWiki
< Education | Projects | ProcessingForTheWeb
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
This test requires a web browser with WebGL enabled. If needed download Mozilla Nightly ~ Minefield
Test | Location |
Sphere & SphereDetail | sphere |