r500/diagrams/c4_8.tex
2025-11-13 10:56:28 -06:00

34 lines
1.1 KiB
TeX

\documentclass{standalone}
\usepackage{tikz}
\usepackage[dvipsnames]{xcolor}
\begin{document}
\begin{tikzpicture}[scale=1]
\draw[ultra thick] (0,0) rectangle (32,-1.2);
\foreach \j in {1,...,3} {
\draw[ultra thick] (\j * 8,0) -- (\j * 8,-1.2);
}
\foreach \j in {0,...,3} {
\foreach \i in {1,...,7} {
\draw[very thick] (\i + \j * 8,0) -- (\i + \j * 8,-0.2);
}
}
\foreach \j in {0,...,3} {
\node[font=\huge\bfseries] at (8 * \j + 4.0,-0.7) {C\pgfmathparse{int(3 - \j)}\pgfmathresult};
\node[font=\large\bfseries] at (8 * \j + 7.5,0.25) {\pgfmathparse{int((3 - \j) * 8)}\pgfmathresult};
}
\node[font=\large\bfseries] at (8 * 0 + 0.0,0.25) {\pgfmathparse{int((4 - 0) * 8)}\pgfmathresult};
%\node[font=\huge\bfseries,text=MidnightBlue ] at ( 0 + 4.5,-1.5) {blue };
%\node[font=\huge\bfseries,text=OliveGreen ] at ( 8 + 4.5,-1.5) {green};
%\node[font=\huge\bfseries,text=BrickRed ] at (16 + 4.5,-1.5) {red };
%\node[font=\huge\bfseries,text=black ] at (24 + 4.5,-1.5) {alpha};
\end{tikzpicture}
\end{document}