Education/Projects/ProcessingForTheWeb/sphere: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
 
Line 59: Line 59:


=== Tests ===
=== Tests ===
 
This test requires a web browser with WebGL enabled. If needed download [http://nightly.mozilla.org/ Mozilla Nightly ~ Minefield]
{| width="200" border="1" cellpadding="1" cellspacing="1"
{| width="200" border="1" cellpadding="1" cellspacing="1"
|-
|-

Latest revision as of 23:42, 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);
 }



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