sphere()
Sphere - Draws a 2-sphere (sphere in 3D space)
Example
Syntax
Parameter
Description
radius
radius of the sphere

Description
draws a UV sphere with a specified radius.
Last updated
Sphere - Draws a 2-sphere (sphere in 3D space)
radius
radius of the sphere

draws a UV sphere with a specified radius.
Last updated
sphere([radius], [detailX], [detailY])def setup():
createCanvas(300,300, WEBGL)
def draw():
background(255, 79, 132)
orbitControl()
stroke(176, 235, 51)
fill(112, 88, 255)
strokeWeight(2)
r = frameCount
rotateX(r)
rotateY(-r)
rotateZ(r)
sphere(100)