Education/Projects/ProcessingForTheWeb/sphere

From MozillaWiki
< Education‎ | Projects‎ | ProcessingForTheWeb
Revision as of 23:42, 16 December 2009 by Anna.sobiepanek (talk | contribs) (→‎Tests)
(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);
 }



Sphere.jpg

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