Try now in the
Open Cloud »
(no sign-in required)

Draw a Sphere

Get started with 3D graphics by creating a single sphere.

Run the code to draw a sphere. Drag to rotate it:

SHOW/HIDE DETAILS

Draw a default, 3D Sphere. Mouse down in the graphic and drag to rotate the image:

In[1]:=
X
Out[1]=

HIDE DETAILS
In[1]:=
X
Out[1]=

Set the color of the sphere. Try other colors, like Orange or Blue:

SHOW/HIDE DETAILS

Make the sphere red. Put the color and sphere in a list (indicated by the curly braces):

In[1]:=
X
Out[1]=

HIDE DETAILS
In[1]:=
X
Out[1]=

Make the sphere partly transparent. Try other values of opacity:

Note: opacity values should be between 0 and 1.

SHOW/HIDE DETAILS

Make the sphere 50% opaque (which is 50% transparent):

In[1]:=
X
Out[1]=

HIDE DETAILS
In[1]:=
X
Out[1]=