summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-graphics-companion/9-2-9.ltx
blob: cc6d107c889df853596dfb902b5eb2ea6b313e89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
\documentclass{ppex}
\nonstopmode
\usepackage {ifthen,color}
\pagestyle{empty}

\begin{document}
\ResetPreambleCommands
\ReadyForTheFray
\usepackage {ifthen,color}
\begin{flushleft}
\newcounter{Col}
\setlength{\fboxsep}{2mm}
\newcommand{\ColBox}[1]{\colorbox[hsb]{.#1,1.,1.}{.#1}}%
\setcounter{Col}{0}\makebox[18mm][l]{Hue:}%
\whiledo{\value{Col}<10}{\ColBox{\theCol}\stepcounter{Col}}\\
\renewcommand{\ColBox}[1]{\colorbox[hsb]{.1,.#1,1.}{.#1}}%
\setcounter{Col}{0}\makebox[18mm][l]{Saturation:}%
\whiledo{\value{Col}<10}{\ColBox{\theCol}\stepcounter{Col}}\\
\renewcommand{\ColBox}[1]{\colorbox[hsb]{1.,1.,.#1}{.#1}}%
\setcounter{Col}{0}\makebox[18mm][l]{Brightness:}%
\whiledo{\value{Col}<10}{\ColBox{\theCol}\stepcounter{Col}}\\
\end{flushleft}
\end{document}