答案1
答案2
TiKZ
带有和colorseries
来自 的示例xcolor
。
\documentclass[tikz,border=2mm]{standalone}
\usetikzlibrary{calc}
\begin{document}
\pgfmathsetseed{1}
\begin{tikzpicture}
\definecolorseries{test}{rgb}{step}[rgb]{.95,.85,.55}{.17,.47,.37}
\resetcolorseries[35]{test}
\foreach \x in {0,1,...,4}{
\foreach \y in {0,1,...,7}
\fill[test!!+] (\x,\y) rectangle ++(1,1);
}
\end{tikzpicture}
\end{document}