Background colors complete

This commit is contained in:
Kenneth John Odle 2024-04-09 19:57:33 -04:00
parent 90a5fd0626
commit 813b692164
2 changed files with 445 additions and 0 deletions

5
.gitignore vendored
View File

@ -284,3 +284,8 @@ TSWLatexianTemp*
# Uncomment the next line to have this generated file ignored. # Uncomment the next line to have this generated file ignored.
#*Notes.bib #*Notes.bib
# Mine
/build/*
/build
.gitignore

440
ninecolors.tex Normal file
View File

@ -0,0 +1,440 @@
\documentclass[10pt,letterpaper,oneside, landscape]{article}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[
letterpaper,
% A4,
% Adjust the measurements below if necessary for A4 paper
bindingoffset=0mm,
textheight=175mm,
textwidth=250mm,
top=12mm,
bottom=10mm,
footskip=0mm,
marginparwidth=0mm,
marginparsep=0mm,
left=25mm,
]{geometry}
\usepackage{tabularray}
\usepackage{ninecolors}
\author{Kenneth John Odle}
\begin{document}
\section{\texttt{ninecolors} Demonstration}
\subsection{Background Colors — Ordinary Saturation}
This table demonstrates the use of \texttt{ninecolors} for background colors.
\noindent{}\begin{tblr}{
columns = {12mm,c},
hlines = {solid, 1pt},
vline{1, 15} = {solid, 1pt},
cell{2}{2} = {c=1}{c,gray1},
cell{3}{2} = {c=1}{c,gray2},
cell{4}{2} = {c=1}{c,gray3},
cell{5}{2} = {c=1}{c,gray4},
cell{6}{2} = {c=1}{c,gray5},
cell{7}{2} = {c=1}{c,gray6},
cell{8}{2} = {c=1}{c,gray7},
cell{9}{2} = {c=1}{c,gray8},
cell{10}{2} = {c=1}{c,gray9},
cell{2}{3} = {c=1}{c,red1},
cell{3}{3} = {c=1}{c,red2},
cell{4}{3} = {c=1}{c,red3},
cell{5}{3} = {c=1}{c,red4},
cell{6}{3} = {c=1}{c,red5},
cell{7}{3} = {c=1}{c,red6},
cell{8}{3} = {c=1}{c,red7},
cell{9}{3} = {c=1}{c,red8},
cell{10}{3} = {c=1}{c,red9},
cell{2}{4} = {c=1}{c,brown1},
cell{3}{4} = {c=1}{c,brown2},
cell{4}{4} = {c=1}{c,brown3},
cell{5}{4} = {c=1}{c,brown4},
cell{6}{4} = {c=1}{c,brown5},
cell{7}{4} = {c=1}{c,brown6},
cell{8}{4} = {c=1}{c,brown7},
cell{9}{4} = {c=1}{c,brown8},
cell{10}{4} = {c=1}{c,brown9},
cell{2}{5} = {c=1}{c,yellow1},
cell{3}{5} = {c=1}{c,yellow2},
cell{4}{5} = {c=1}{c,yellow3},
cell{5}{5} = {c=1}{c,yellow4},
cell{6}{5} = {c=1}{c,yellow5},
cell{7}{5} = {c=1}{c,yellow6},
cell{8}{5} = {c=1}{c,yellow7},
cell{9}{5} = {c=1}{c,yellow8},
cell{10}{5} = {c=1}{c,yellow9},
cell{2}{6} = {c=1}{c,olive1},
cell{3}{6} = {c=1}{c,olive2},
cell{4}{6} = {c=1}{c,olive3},
cell{5}{6} = {c=1}{c,olive4},
cell{6}{6} = {c=1}{c,olive5},
cell{7}{6} = {c=1}{c,olive6},
cell{8}{6} = {c=1}{c,olive7},
cell{9}{6} = {c=1}{c,olive8},
cell{10}{6} = {c=1}{c,olive9},
cell{2}{7} = {c=1}{c,green1},
cell{3}{7} = {c=1}{c,green2},
cell{4}{7} = {c=1}{c,green3},
cell{5}{7} = {c=1}{c,green4},
cell{6}{7} = {c=1}{c,green5},
cell{7}{7} = {c=1}{c,green6},
cell{8}{7} = {c=1}{c,green7},
cell{9}{7} = {c=1}{c,green8},
cell{10}{7} = {c=1}{c,green9},
cell{2}{8} = {c=1}{c,teal1},
cell{3}{8} = {c=1}{c,teal2},
cell{4}{8} = {c=1}{c,teal3},
cell{5}{8} = {c=1}{c,teal4},
cell{6}{8} = {c=1}{c,teal5},
cell{7}{8} = {c=1}{c,teal6},
cell{8}{8} = {c=1}{c,teal7},
cell{9}{8} = {c=1}{c,teal8},
cell{10}{8} = {c=1}{c,teal9},
cell{2}{9} = {c=1}{c,cyan1},
cell{3}{9} = {c=1}{c,cyan2},
cell{4}{9} = {c=1}{c,cyan3},
cell{5}{9} = {c=1}{c,cyan4},
cell{6}{9} = {c=1}{c,cyan5},
cell{7}{9} = {c=1}{c,cyan6},
cell{8}{9} = {c=1}{c,cyan7},
cell{9}{9} = {c=1}{c,cyan8},
cell{10}{9} = {c=1}{c,cyan9},
cell{2}{10} = {c=1}{c,azure1},
cell{3}{10} = {c=1}{c,azure2},
cell{4}{10} = {c=1}{c,azure3},
cell{5}{10} = {c=1}{c,azure4},
cell{6}{10} = {c=1}{c,azure5},
cell{7}{10} = {c=1}{c,azure6},
cell{8}{10} = {c=1}{c,azure7},
cell{9}{10} = {c=1}{c,azure8},
cell{10}{10} = {c=1}{c,azure9},
cell{2}{11} = {c=1}{c,blue1},
cell{3}{11} = {c=1}{c,blue2},
cell{4}{11} = {c=1}{c,blue3},
cell{5}{11} = {c=1}{c,blue4},
cell{6}{11} = {c=1}{c,blue5},
cell{7}{11} = {c=1}{c,blue6},
cell{8}{11} = {c=1}{c,blue7},
cell{9}{11} = {c=1}{c,blue8},
cell{10}{11} = {c=1}{c,blue9},
cell{2}{12} = {c=1}{c,violet1},
cell{3}{12} = {c=1}{c,violet2},
cell{4}{12} = {c=1}{c,violet3},
cell{5}{12} = {c=1}{c,violet4},
cell{6}{12} = {c=1}{c,violet5},
cell{7}{12} = {c=1}{c,violet6},
cell{8}{12} = {c=1}{c,violet7},
cell{9}{12} = {c=1}{c,violet8},
cell{10}{12} = {c=1}{c,violet9},
cell{2}{13} = {c=1}{c,magenta1},
cell{3}{13} = {c=1}{c,magenta2},
cell{4}{13} = {c=1}{c,magenta3},
cell{5}{13} = {c=1}{c,magenta4},
cell{6}{13} = {c=1}{c,magenta5},
cell{7}{13} = {c=1}{c,magenta6},
cell{8}{13} = {c=1}{c,magenta7},
cell{9}{13} = {c=1}{c,magenta8},
cell{10}{13} = {c=1}{c,magenta9},
cell{2}{14} = {c=1}{c,purple1},
cell{3}{14} = {c=1}{c,purple2},
cell{4}{14} = {c=1}{c,purple3},
cell{5}{14} = {c=1}{c,purple4},
cell{6}{14} = {c=1}{c,purple5},
cell{7}{14} = {c=1}{c,purple6},
cell{8}{14} = {c=1}{c,purple7},
cell{9}{14} = {c=1}{c,purple8},
cell{10}{14} = {c=1}{c,purple9},
}
Level & Gray & Red & Brown & Yellow & Olive & Green & Teal & Cyan & Azure & Blue & Violet & Magenta & Purple \\
1 &&&&&&&&&&&&& \\
2 &&&&&&&&&&&&& \\
3 &&&&&&&&&&&&& \\
4 &&&&&&&&&&&&& \\
5 &&&&&&&&&&&&& \\
6 &&&&&&&&&&&&& \\
7 &&&&&&&&&&&&& \\
8 &&&&&&&&&&&&& \\
9 &&&&&&&&&&&&& \\
\end{tblr}
\subsection{Background Colors — Low Saturation}
This table demonstrates the use of \texttt{ninecolors} for background colors with the low saturation option.
\NineColors{saturation=low}
\noindent{}\begin{tblr}{
columns = {12mm,c},
hlines = {solid, 1pt},
vline{1, 15} = {solid, 1pt},
cell{2}{2} = {c=1}{c,gray1},
cell{3}{2} = {c=1}{c,gray2},
cell{4}{2} = {c=1}{c,gray3},
cell{5}{2} = {c=1}{c,gray4},
cell{6}{2} = {c=1}{c,gray5},
cell{7}{2} = {c=1}{c,gray6},
cell{8}{2} = {c=1}{c,gray7},
cell{9}{2} = {c=1}{c,gray8},
cell{10}{2} = {c=1}{c,gray9},
cell{2}{3} = {c=1}{c,red1},
cell{3}{3} = {c=1}{c,red2},
cell{4}{3} = {c=1}{c,red3},
cell{5}{3} = {c=1}{c,red4},
cell{6}{3} = {c=1}{c,red5},
cell{7}{3} = {c=1}{c,red6},
cell{8}{3} = {c=1}{c,red7},
cell{9}{3} = {c=1}{c,red8},
cell{10}{3} = {c=1}{c,red9},
cell{2}{4} = {c=1}{c,brown1},
cell{3}{4} = {c=1}{c,brown2},
cell{4}{4} = {c=1}{c,brown3},
cell{5}{4} = {c=1}{c,brown4},
cell{6}{4} = {c=1}{c,brown5},
cell{7}{4} = {c=1}{c,brown6},
cell{8}{4} = {c=1}{c,brown7},
cell{9}{4} = {c=1}{c,brown8},
cell{10}{4} = {c=1}{c,brown9},
cell{2}{5} = {c=1}{c,yellow1},
cell{3}{5} = {c=1}{c,yellow2},
cell{4}{5} = {c=1}{c,yellow3},
cell{5}{5} = {c=1}{c,yellow4},
cell{6}{5} = {c=1}{c,yellow5},
cell{7}{5} = {c=1}{c,yellow6},
cell{8}{5} = {c=1}{c,yellow7},
cell{9}{5} = {c=1}{c,yellow8},
cell{10}{5} = {c=1}{c,yellow9},
cell{2}{6} = {c=1}{c,olive1},
cell{3}{6} = {c=1}{c,olive2},
cell{4}{6} = {c=1}{c,olive3},
cell{5}{6} = {c=1}{c,olive4},
cell{6}{6} = {c=1}{c,olive5},
cell{7}{6} = {c=1}{c,olive6},
cell{8}{6} = {c=1}{c,olive7},
cell{9}{6} = {c=1}{c,olive8},
cell{10}{6} = {c=1}{c,olive9},
cell{2}{7} = {c=1}{c,green1},
cell{3}{7} = {c=1}{c,green2},
cell{4}{7} = {c=1}{c,green3},
cell{5}{7} = {c=1}{c,green4},
cell{6}{7} = {c=1}{c,green5},
cell{7}{7} = {c=1}{c,green6},
cell{8}{7} = {c=1}{c,green7},
cell{9}{7} = {c=1}{c,green8},
cell{10}{7} = {c=1}{c,green9},
cell{2}{8} = {c=1}{c,teal1},
cell{3}{8} = {c=1}{c,teal2},
cell{4}{8} = {c=1}{c,teal3},
cell{5}{8} = {c=1}{c,teal4},
cell{6}{8} = {c=1}{c,teal5},
cell{7}{8} = {c=1}{c,teal6},
cell{8}{8} = {c=1}{c,teal7},
cell{9}{8} = {c=1}{c,teal8},
cell{10}{8} = {c=1}{c,teal9},
cell{2}{9} = {c=1}{c,cyan1},
cell{3}{9} = {c=1}{c,cyan2},
cell{4}{9} = {c=1}{c,cyan3},
cell{5}{9} = {c=1}{c,cyan4},
cell{6}{9} = {c=1}{c,cyan5},
cell{7}{9} = {c=1}{c,cyan6},
cell{8}{9} = {c=1}{c,cyan7},
cell{9}{9} = {c=1}{c,cyan8},
cell{10}{9} = {c=1}{c,cyan9},
cell{2}{10} = {c=1}{c,azure1},
cell{3}{10} = {c=1}{c,azure2},
cell{4}{10} = {c=1}{c,azure3},
cell{5}{10} = {c=1}{c,azure4},
cell{6}{10} = {c=1}{c,azure5},
cell{7}{10} = {c=1}{c,azure6},
cell{8}{10} = {c=1}{c,azure7},
cell{9}{10} = {c=1}{c,azure8},
cell{10}{10} = {c=1}{c,azure9},
cell{2}{11} = {c=1}{c,blue1},
cell{3}{11} = {c=1}{c,blue2},
cell{4}{11} = {c=1}{c,blue3},
cell{5}{11} = {c=1}{c,blue4},
cell{6}{11} = {c=1}{c,blue5},
cell{7}{11} = {c=1}{c,blue6},
cell{8}{11} = {c=1}{c,blue7},
cell{9}{11} = {c=1}{c,blue8},
cell{10}{11} = {c=1}{c,blue9},
cell{2}{12} = {c=1}{c,violet1},
cell{3}{12} = {c=1}{c,violet2},
cell{4}{12} = {c=1}{c,violet3},
cell{5}{12} = {c=1}{c,violet4},
cell{6}{12} = {c=1}{c,violet5},
cell{7}{12} = {c=1}{c,violet6},
cell{8}{12} = {c=1}{c,violet7},
cell{9}{12} = {c=1}{c,violet8},
cell{10}{12} = {c=1}{c,violet9},
cell{2}{13} = {c=1}{c,magenta1},
cell{3}{13} = {c=1}{c,magenta2},
cell{4}{13} = {c=1}{c,magenta3},
cell{5}{13} = {c=1}{c,magenta4},
cell{6}{13} = {c=1}{c,magenta5},
cell{7}{13} = {c=1}{c,magenta6},
cell{8}{13} = {c=1}{c,magenta7},
cell{9}{13} = {c=1}{c,magenta8},
cell{10}{13} = {c=1}{c,magenta9},
cell{2}{14} = {c=1}{c,purple1},
cell{3}{14} = {c=1}{c,purple2},
cell{4}{14} = {c=1}{c,purple3},
cell{5}{14} = {c=1}{c,purple4},
cell{6}{14} = {c=1}{c,purple5},
cell{7}{14} = {c=1}{c,purple6},
cell{8}{14} = {c=1}{c,purple7},
cell{9}{14} = {c=1}{c,purple8},
cell{10}{14} = {c=1}{c,purple9},
}
Level & Gray & Red & Brown & Yellow & Olive & Green & Teal & Cyan & Azure & Blue & Violet & Magenta & Purple \\
1 &&&&&&&&&&&&& \\
2 &&&&&&&&&&&&& \\
3 &&&&&&&&&&&&& \\
4 &&&&&&&&&&&&& \\
5 &&&&&&&&&&&&& \\
6 &&&&&&&&&&&&& \\
7 &&&&&&&&&&&&& \\
8 &&&&&&&&&&&&& \\
9 &&&&&&&&&&&&& \\
\end{tblr}
\subsection{Background Colors — High Saturation}
This table demonstrates the use of \texttt{ninecolors} for background colors with the high saturation option.
\NineColors{saturation=high}
\noindent{}\begin{tblr}{
columns = {12mm,c},
hlines = {solid, 1pt},
vline{1, 15} = {solid, 1pt},
cell{2}{2} = {c=1}{c,gray1},
cell{3}{2} = {c=1}{c,gray2},
cell{4}{2} = {c=1}{c,gray3},
cell{5}{2} = {c=1}{c,gray4},
cell{6}{2} = {c=1}{c,gray5},
cell{7}{2} = {c=1}{c,gray6},
cell{8}{2} = {c=1}{c,gray7},
cell{9}{2} = {c=1}{c,gray8},
cell{10}{2} = {c=1}{c,gray9},
cell{2}{3} = {c=1}{c,red1},
cell{3}{3} = {c=1}{c,red2},
cell{4}{3} = {c=1}{c,red3},
cell{5}{3} = {c=1}{c,red4},
cell{6}{3} = {c=1}{c,red5},
cell{7}{3} = {c=1}{c,red6},
cell{8}{3} = {c=1}{c,red7},
cell{9}{3} = {c=1}{c,red8},
cell{10}{3} = {c=1}{c,red9},
cell{2}{4} = {c=1}{c,brown1},
cell{3}{4} = {c=1}{c,brown2},
cell{4}{4} = {c=1}{c,brown3},
cell{5}{4} = {c=1}{c,brown4},
cell{6}{4} = {c=1}{c,brown5},
cell{7}{4} = {c=1}{c,brown6},
cell{8}{4} = {c=1}{c,brown7},
cell{9}{4} = {c=1}{c,brown8},
cell{10}{4} = {c=1}{c,brown9},
cell{2}{5} = {c=1}{c,yellow1},
cell{3}{5} = {c=1}{c,yellow2},
cell{4}{5} = {c=1}{c,yellow3},
cell{5}{5} = {c=1}{c,yellow4},
cell{6}{5} = {c=1}{c,yellow5},
cell{7}{5} = {c=1}{c,yellow6},
cell{8}{5} = {c=1}{c,yellow7},
cell{9}{5} = {c=1}{c,yellow8},
cell{10}{5} = {c=1}{c,yellow9},
cell{2}{6} = {c=1}{c,olive1},
cell{3}{6} = {c=1}{c,olive2},
cell{4}{6} = {c=1}{c,olive3},
cell{5}{6} = {c=1}{c,olive4},
cell{6}{6} = {c=1}{c,olive5},
cell{7}{6} = {c=1}{c,olive6},
cell{8}{6} = {c=1}{c,olive7},
cell{9}{6} = {c=1}{c,olive8},
cell{10}{6} = {c=1}{c,olive9},
cell{2}{7} = {c=1}{c,green1},
cell{3}{7} = {c=1}{c,green2},
cell{4}{7} = {c=1}{c,green3},
cell{5}{7} = {c=1}{c,green4},
cell{6}{7} = {c=1}{c,green5},
cell{7}{7} = {c=1}{c,green6},
cell{8}{7} = {c=1}{c,green7},
cell{9}{7} = {c=1}{c,green8},
cell{10}{7} = {c=1}{c,green9},
cell{2}{8} = {c=1}{c,teal1},
cell{3}{8} = {c=1}{c,teal2},
cell{4}{8} = {c=1}{c,teal3},
cell{5}{8} = {c=1}{c,teal4},
cell{6}{8} = {c=1}{c,teal5},
cell{7}{8} = {c=1}{c,teal6},
cell{8}{8} = {c=1}{c,teal7},
cell{9}{8} = {c=1}{c,teal8},
cell{10}{8} = {c=1}{c,teal9},
cell{2}{9} = {c=1}{c,cyan1},
cell{3}{9} = {c=1}{c,cyan2},
cell{4}{9} = {c=1}{c,cyan3},
cell{5}{9} = {c=1}{c,cyan4},
cell{6}{9} = {c=1}{c,cyan5},
cell{7}{9} = {c=1}{c,cyan6},
cell{8}{9} = {c=1}{c,cyan7},
cell{9}{9} = {c=1}{c,cyan8},
cell{10}{9} = {c=1}{c,cyan9},
cell{2}{10} = {c=1}{c,azure1},
cell{3}{10} = {c=1}{c,azure2},
cell{4}{10} = {c=1}{c,azure3},
cell{5}{10} = {c=1}{c,azure4},
cell{6}{10} = {c=1}{c,azure5},
cell{7}{10} = {c=1}{c,azure6},
cell{8}{10} = {c=1}{c,azure7},
cell{9}{10} = {c=1}{c,azure8},
cell{10}{10} = {c=1}{c,azure9},
cell{2}{11} = {c=1}{c,blue1},
cell{3}{11} = {c=1}{c,blue2},
cell{4}{11} = {c=1}{c,blue3},
cell{5}{11} = {c=1}{c,blue4},
cell{6}{11} = {c=1}{c,blue5},
cell{7}{11} = {c=1}{c,blue6},
cell{8}{11} = {c=1}{c,blue7},
cell{9}{11} = {c=1}{c,blue8},
cell{10}{11} = {c=1}{c,blue9},
cell{2}{12} = {c=1}{c,violet1},
cell{3}{12} = {c=1}{c,violet2},
cell{4}{12} = {c=1}{c,violet3},
cell{5}{12} = {c=1}{c,violet4},
cell{6}{12} = {c=1}{c,violet5},
cell{7}{12} = {c=1}{c,violet6},
cell{8}{12} = {c=1}{c,violet7},
cell{9}{12} = {c=1}{c,violet8},
cell{10}{12} = {c=1}{c,violet9},
cell{2}{13} = {c=1}{c,magenta1},
cell{3}{13} = {c=1}{c,magenta2},
cell{4}{13} = {c=1}{c,magenta3},
cell{5}{13} = {c=1}{c,magenta4},
cell{6}{13} = {c=1}{c,magenta5},
cell{7}{13} = {c=1}{c,magenta6},
cell{8}{13} = {c=1}{c,magenta7},
cell{9}{13} = {c=1}{c,magenta8},
cell{10}{13} = {c=1}{c,magenta9},
cell{2}{14} = {c=1}{c,purple1},
cell{3}{14} = {c=1}{c,purple2},
cell{4}{14} = {c=1}{c,purple3},
cell{5}{14} = {c=1}{c,purple4},
cell{6}{14} = {c=1}{c,purple5},
cell{7}{14} = {c=1}{c,purple6},
cell{8}{14} = {c=1}{c,purple7},
cell{9}{14} = {c=1}{c,purple8},
cell{10}{14} = {c=1}{c,purple9},
}
Level & Gray & Red & Brown & Yellow & Olive & Green & Teal & Cyan & Azure & Blue & Violet & Magenta & Purple \\
1 &&&&&&&&&&&&& \\
2 &&&&&&&&&&&&& \\
3 &&&&&&&&&&&&& \\
4 &&&&&&&&&&&&& \\
5 &&&&&&&&&&&&& \\
6 &&&&&&&&&&&&& \\
7 &&&&&&&&&&&&& \\
8 &&&&&&&&&&&&& \\
9 &&&&&&&&&&&&& \\
\end{tblr}
\end{document}