VertexColors

VertexColors

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

Details

Examples

open allclose all

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]=

Scope  (1)

Neat Examples  (2)

See Also

VertexNormals  Style  RGBColor

Introduced in 2007
(6.0)