VertexColors

VertexColors
is an option for graphics primitives which specifies the colors to assign to vertices.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (9)Basic Examples (9)

Specify vertex colors for 2D polygons:

In[1]:=
Click for copyable input
Out[1]=

Specify vertex colors for 3D polygons:

In[1]:=
Click for copyable input
Out[1]=

Specify vertex colors for 2D lines:

In[1]:=
Click for copyable input
Out[1]=

Specify vertex colors for 3D lines:

In[1]:=
Click for copyable input
Out[1]=

Specify vertex colors for tubes:

In[1]:=
Click for copyable input
Out[1]=

Specify vertex colors for 2D points:

In[1]:=
Click for copyable input
Out[1]=

Specify vertex colors for 3D points:

In[1]:=
Click for copyable input
Out[1]=

Opacity can be specified for each vertex as well:

In[1]:=
Click for copyable input
Out[1]=

Assign colors for shared vertices:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=
New in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »