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

Color Temperature

When a black object is heated, its first red hot, then white hot, then blue hot...

Run the code to find the color of a black object heated to 4,000 degrees Kelvin. Find the colors for other temperaturesfor example, 10,000 degrees Kelvin:

SHOW/HIDE DETAILS

When an object is heated, it gets red hot, then white hot, then blue hot. The color depends on the temperature.

This is the color when the temperature is 1,000 degrees Kelvin (the Kelvin temperature is the Celsius temperature plus 273.15):

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

This is the color at 6,500 degrees Kelvin (white hot):

In[2]:=
X
Out[2]=

This is the color at 10,000 degrees Kelvin (blue hot):

In[3]:=
X
Out[3]=

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

Make a disk of that color. Try other temperatures:

SHOW/HIDE DETAILS

This draws a disk:

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

This colors the disk red:

In[2]:=
X
Out[2]=

This colors the disk the color of a black object at 4,000 degrees Kelvin:

In[3]:=
X
Out[3]=

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

Manipulate the temperature and see the corresponding color. Drag the slider to change the temperature:

Hint: click the + to the right of the slider to see the temperature value.

SHOW/HIDE DETAILS

Use Manipulate to make code interactive.

This draws a disk at a temperature of 1,000 degrees Kelvin:

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

Make the temperature interactive by wrapping the code with Manipulate, replacing 1000 with the variable temp and specifying that temp varies from 1000 to 10000. Drag the slider to change the temperature:

In[2]:=
X
Out[2]=

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

Share ItMake an interactive website for exploring color temperature:

SHOW/HIDE DETAILS

Deploy the Manipulate to the Wolfram Cloud where anyone with a browser can use it:

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

Click the link in the output to visit the site.

Share the link by right-clicking it and choosing Copy Address. Paste the link into an email, tweet, or other message.

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