I'm using the smartdiagram package to draw a diagram, and I'm using additionals.
I would like use different fill colors for each of the additionals, but so far I couldn't figure out if this is possible.
Here is my MWE, where all the additionals are filled with gray!20
\documentclass{article}
\usepackage{tikz}
\usepackage{smartdiagram}
\usesmartdiagramlibrary{additions}
\begin{document}
\centering
\smartdiagramset{
set color list={red!10, red!30,red!50},
sequence item border color=black,
sequence item text color=black,
sequence item border size=1.2\pgflinewidth,
sequence item font size=\scriptsize\sffamily,
additions={
additional item shape=rectangle,
additional item fill color=gray!20,
additional item border color=black,
additional arrow line width=2pt,
additional arrow tip=to,
additional arrow color=black,
additional item font=\scriptsize\sffamily,
}
}
\smartdiagramadd[sequence diagram]{step 1,step 2, step 3}
{above of sequence-item1/input,below of sequence-item2/output 1,below of sequence-item3/output 2}
\smartdiagramconnect{to-}{sequence-item1/additional-module1}
\smartdiagramconnect{-to}{sequence-item2/additional-module2}
\smartdiagramconnect{-to}{sequence-item3/additional-module3}
\end{document}
Is there any way of using different fill colors for annotations "input", "output 1" and "output 2"?
Best Answer
You could use a
colorseries
directly. For example: