So this seems to be impossible:
OrangeRed!\c!white
with \c being any kind of \def formula, or precisely in my case, with a \pgfmathsetmacro. Here is MWE
\documentclass{article}
\usepackage{mathtools}
% TIKZ & PGF
\usepackage[usenames,dvipsnames,svgnames]{xcolor}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepackage{tikz}
\usetikzlibrary{backgrounds, decorations.shapes, decorations.markings, shapes, patterns}
% % % % % % % % CIRCLES % % % % % % % %
% #1 angle
% #2 ray
% #3 shift
\pgfmathdeclarefunction{circleX}{3}
{%
\pgfmathparse{#3 + #2*cos(deg(#1))}%
}
\pgfmathdeclarefunction{circleY}{3}
{%
\pgfmathparse{#3 + #2*sin(deg(#1))}%
}
\begin{document}
\begin{tikzpicture}
\tikzset{
small dot/.style={fill=black, circle, scale=2}
}
\pgfmathsetmacro{\halfPi}{.5*pi}
\pgfmathsetmacro{\twoPi}{2*pi}
\pgfmathsetmacro{\r}{1}
\pgfmathsetmacro{\yshift}{0.25}
\begin{axis}[axis x line=center, axis y line=none, width=.5\textwidth, axis equal,
xtick={0,\halfPi,...,\twoPi}, xticklabels={$0$,$\frac{\pi}{2}$,$\pi$,$\frac{3\pi}{2}$,$2\pi$}]
\foreach \i in {0.25,0.5,...,1} { %
\pgfmathsetmacro{\c}{(1.2-\i)*100}
\pgfmathsetmacro{\xshift}{\i*2*pi}
%\addplot[OrangeRed!\c!white -> nope
%\addplot[color=OrangeRed!\c!white -> nope
%\addplot[color={OrangeRed!\c!white} -> nope
%\addplot[color/.expanded=OrangeRed!\c!white -> nope
\addplot[color=OrangeRed!50!white, samples=80, domain=0:2*pi]
({circleX(x,\r,\xshift)},{circleY(x,\r,\r+\yshift)});
}
\end{axis}
\end{tikzpicture}
\end{document}
Is there any way to use a macro within an xcolor expression without the need of a \definecolor{colorname}{rgb|cmyk|...}{color stuff definition}?



color=OrangeRed!\c!whiteorcolor/.expanded=OrangeRed!\c!white? There may be problems withxcolorand different color schemes (OrangeRedis not available by default) or PGFPlots or\foreachor ... Can you post a minimal working example (MWE) and the error message you get or what does not work as expected? – Qrrbrbirlbel Dec 03 '13 at 17:20OrangeRed!\c!white, I haveMissing \endcsname inserted, withcolor=OrangeRed!\c!white, I haveMissing number, treated as zeroand withcolor/.expanded=OrangeRed!\c!white, I havepgfkeys: I do not know the key '/pgfplots/color' and I am going to ignore it. Perhaps you misspelled it.– nadous Dec 03 '13 at 17:46