I try to generate with tikz a header for each page with a binary matrix code. as:
currently my working code
\RequirePackage[svgnames]{xcolor}
\RequirePackage{tikz}
\RequirePackage{kpfonts}
\RequirePackage[explicit]{titlesec}
\newcommand*\chapterlabel{}
\titleformat{\chapter}
{\gdef\chapterlabel{}
\normalfont\sffamily\Huge\bfseries\scshape}
{\gdef\chapterlabel{\thechapter\ }}{0pt}
{\begin{tikzpicture}[remember picture,overlay]
\node[yshift=-3cm] at (current page.north west)
{
\begin{tikzpicture}[remember picture, overlay]
\draw[fill=Black] (0,0) rectangle (\paperwidth,3cm);
\foreach \x in {0.0,2.0, ..., 25.0}{\foreach \y in {1, ..., 4.0} \node[draw=none,color=green] at (\x,\y) {\tiny A};};
\foreach \x in {1.0,3.0, ..., 25.0}{\foreach \y in {1, ..., 4.0} \node[draw=none,color=cyan] at (\x,\y) {\tiny T};};
\node[anchor=east,xshift=.9\paperwidth,rectangle,rounded corners=20pt,inner sep=11pt,fill=MidnightBlue]
{\color{white}\partlabel#1};
\end{tikzpicture}
};
\end{tikzpicture} } \titlespacing*{\chapter}{0pt}{50pt}{-60pt}
Edit: Finally I found a conrrect way to display matrix of 1 and 0. I need to found how to randomize the number to print and when is 0 set white color ant 1 green colors. I updated the code not the picture