| 1 |
% opencolor 1.0.4 2026-04-26 |
| 2 |
% Michele Piazzai <[email protected]> |
| 3 |
% https://piazzai.github.io/ |
| 4 |
% https://mit-license.org/ |
| 5 |
|
| 6 |
\documentclass{standalone} |
| 7 |
|
| 8 |
\usepackage{tikz} |
| 9 |
\usetikzlibrary{calc} |
| 10 |
|
| 11 |
\usepackage{etoolbox} |
| 12 |
\usepackage{opencolor} |
| 13 |
|
| 14 |
\newcommand\w{9em} |
| 15 |
\newcommand\h{4.5em} |
| 16 |
|
| 17 |
\begin{document} |
| 18 |
\begin{tikzpicture} |
| 19 |
\foreach \c [count=\x] in {gray,red,pink,grape,violet,indigo,blue,cyan,teal,green,lime,yellow,orange} {% |
| 20 |
\foreach \b in {0,...,9} {% |
| 21 |
\draw[\ifnumgreater{\x}{1}{black}{\ifnumgreater{\b}{6}{white}{black}}] (\b*\w,-\x*\h) node [draw=black,fill=oc-\c-\b,minimum width=\w,minimum height=\h] {\ttfamily\large oc-\c-\b}; |
| 22 |
} |
| 23 |
} |
| 24 |
\end{tikzpicture} |
| 25 |
|
| 26 |
\end{document} |