ColorFunction

ColorFunction
is an option for graphics functions that specifies a function to apply to determine colors of elements.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (4)Basic Examples (4)

Color the surface by height:

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

Use predefined gradients:

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

Color a curve:

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

Color a matrix:

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