I struggle to make a radial shading on a portion of a disk (resembling a pizza slice), and I wonder if someone could help me with that!
Basically I have the figure produced by that code:
\begin{tikzpicture}[scale=1]
\pgfmathsetmacro{\cos}{0.5}
\pgfmathsetmacro{\sin}{sqrt(3)/2}
\pgfmathsetmacro{\size}{6}
\pgfmathsetmacro{\pis}{30}
\pgfmathsetmacro{\sizecore}{1.2}
\pgfmathsetmacro{\sizeDDcore}{1.2}
\pgfmathsetmacro{\sizeDDHe}{1}
\pgfmathsetmacro{\begDDHe}{4.2}
\pgfmathsetmacro{\sizeDDHe}{0.6}
\pgfmathsetmacro{\endDDHe}{\begDDHe+\sizeDDHe}
%
%% Main shape (pizza share like)
\draw[thick, color=gray!50] (0,0) -- (\size*\cos,\size*\sin);
\draw[thick, color=gray!50] (0,0) -- (-\size*\cos,\size*\sin);
\draw[thick, color=gray!50] (\size*\cos, \size*\sin) arc (60: 120: \size);
\fill[orange!40] (0,0) -- (\size*\cos,\size*\sin) arc (60: 120: \size) -- (-\size*\cos,\size*\sin) -- cycle;
\fill[orange!60] (0,0) -- (\begDDHe*\cos,\begDDHe*\sin) arc (60: 120: \begDDHe) -- (-\begDDHe*\cos,\begDDHe*\sin) -- cycle;
%% Core
\fill[fill=red!80] (0,0) -- (\sizecore*\cos,\sizecore*\sin) arc (60:120:\sizecore) -- (-\sizecore*\cos,\sizecore*\sin) -- cycle;
%% DD region just outside the core
\fill[fill=red!50]
(-\sizecore*\cos,\sizecore*\sin) arc (120:60:\sizecore) -- (\sizecore*\cos,\sizecore*\sin) -- (\sizecore*\cos+\sizeDDcore*\cos,\sizecore*\sin+\sizeDDcore*\sin) arc (60:120:\sizecore+\sizeDDcore) -- (-\sizecore*\cos-\sizeDDcore*\cos,\sizecore*\sin+\sizeDDcore*\sin) -- cycle;
%% DD in the He region
\fill[fill=blue!50] (-\begDDHe*\cos,\begDDHe*\sin) arc (120:60:\begDDHe) -- (\begDDHe*\cos,\begDDHe*\sin) -- (\endDDHe*\cos,\endDDHe*\sin) arc (60:120:\endDDHe) -- (-\endDDHe*\cos,\endDDHe*\sin) -- cycle;
with result:
and I would like to have a radial shading to match regions with different colors smoothly.
Thanks in advance for your help !
Cheers, Quentin


\documentclass{...}, the required\usepackage's,\begin{document}, and\end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – samcarter_is_at_topanswers.xyz Nov 21 '16 at 15:43