Education/Projects/ProcessingForTheWeb/sphere

From MozillaWiki
< Education‎ | Projects‎ | ProcessingForTheWeb
Revision as of 22:52, 16 December 2009 by Anna.sobiepanek (talk | contribs) (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…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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