60 lines
1.7 KiB
Plaintext
60 lines
1.7 KiB
Plaintext
\usetikzlibrary{calc,trees,positioning,arrows,chains,shapes.geometric,%
|
|
decorations.pathreplacing,decorations.pathmorphing,shapes,%
|
|
matrix,shapes.symbols,plotmarks,decorations.markings,shadows,backgrounds}
|
|
|
|
|
|
\pgfdeclarelayer{background}
|
|
\pgfdeclarelayer{foreground}
|
|
\pgfdeclarelayer{L0}
|
|
\pgfdeclarelayer{L1}
|
|
\pgfdeclarelayer{L2}
|
|
\pgfdeclarelayer{L3}
|
|
\pgfsetlayers{background,L0,L1,L2,L3,main,foreground}
|
|
|
|
\newcommand{\scale}{0.65}
|
|
|
|
\begin{tikzpicture}[scale=\scale,every node/.style={scale=\scale},on grid ]
|
|
|
|
\definecolor{LCUFill}{rgb}{0,0.5,1}
|
|
\definecolor{DrawColor}{rgb}{0,0,0.5}
|
|
\definecolor{LCUFill}{rgb}{1,1,1}
|
|
\definecolor{DrawColor}{rgb}{0,0,0}
|
|
|
|
\tikzstyle{TextStyle}=[scale=1.5, text centered]
|
|
|
|
\tikzstyle{LCU}=[draw=DrawColor, fill=LCUFill,thick]
|
|
\tikzstyle{CU}=[draw=DrawColor,thick]
|
|
\tikzstyle{PU}=[draw=DrawColor, densely dashed]
|
|
|
|
% \newcommand{\gridsize}{70}
|
|
% \draw[help lines] (-\gridsize,-\gridsize) grid ++(\gridsize*2,\gridsize*2);
|
|
|
|
|
|
\begin{scope}[xshift=0]
|
|
\draw[LCU] (0,0) rectangle ++(4,4); % 64x64
|
|
\node[TextStyle] at (2,-.8) {$N\times N$};
|
|
\end{scope}
|
|
|
|
\begin{scope}[xshift=10cm]
|
|
\draw[LCU] (0,0) rectangle ++(4,4); % 64x64
|
|
\draw[CU] (0,0) rectangle ++(2,4); % 64x64
|
|
\node[TextStyle] at (2,-.8) {$\frac{N}{2}\times N$};
|
|
\end{scope}
|
|
|
|
\begin{scope}[xshift=5cm]
|
|
\draw[LCU] (0,0) rectangle ++(4,4); % 64x64
|
|
\draw[CU] (0,0) rectangle ++(4,2); % 64x64
|
|
\node[TextStyle] at (2,-.8) {$N\times\frac{N}{2}$};
|
|
\end{scope}
|
|
|
|
\begin{scope}[xshift=15cm]
|
|
\draw[LCU] (0,0) rectangle ++(4,4); % 64x64
|
|
\draw[CU] (0,0) rectangle ++(2,2); % 64x64
|
|
\draw[CU] (2,2) rectangle ++(2,2); % 64x64
|
|
\node[TextStyle] at (2,-.8) {$\frac{N}{2}\times\frac{N}{2}$};
|
|
\end{scope}
|
|
|
|
|
|
|
|
\end{tikzpicture}
|