Black body color gradient

Color of an ideal black body as a function of temperature.
Find other black body diagrams via the “black body” tag: black body cavity model, plots, Plank oscillators.

blackbody_color

Edit and compile if you like:

% Author: Izaak Neutelings (March 2019)
\documentclass[border=3pt,tikz]{standalone}
\tikzset{>=latex} % for LaTeX arrow head
\usepackage{xcolor}
\usepackage{physics}
\usepackage{siunitx}
\pgfdeclareverticalshading{rainbow}{100bp}{
color(0bp)=(red); color(25bp)=(red); color(35bp)=(yellow);
color(45bp)=(green); color(55bp)=(cyan); color(65bp)=(blue);
color(75bp)=(violet); color(100bp)=(violet)
}
\pgfdeclareverticalshading{blackbody}{100}{
rgb(0)=(0,0,0);
rgb(25)=(0,0,0);
rgb(25+50/11*1)=(1,0.0337,0);
rgb(25+50/11*2)=(1,0.2647,0.0033);
rgb(25+50/11*3)=(1,0.4870,0.1411);
rgb(25+50/11*4)=(1,0.6636,0.3583);
rgb(25+50/11*5)=(1,0.7992,0.6045);
rgb(25+50/11*6)=(1,0.9019,0.8473);
rgb(25+50/11*6.5)=(1,1,1);
rgb(25+50/11*7)=(0.9337,0.9150,1);
rgb(25+50/11*8)=(0.7874,0.8187,1);
rgb(25+50/11*9)=(0.6925,0.7522,1);
rgb(25+50/11*10)=(0.6268,0.7039,1);
rgb(75)=(0.3277,0.5022,1);
rgb(100)=(0.3277,0.5022,1)
}
\begin{document}
% RAINBOW
\begin{tikzpicture}
\shade[shading=rainbow,shading angle=270] (0,0) rectangle (10,1);
\end{tikzpicture}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Click to download: blackbody_color.texblackbody_color.pdf
Open in Overleaf: blackbody_color.tex

Leave a Reply

Your email address will not be published.