-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolorspage.tex
49 lines (38 loc) · 1.65 KB
/
colorspage.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
\begin{minipage}[b][\textheight]{.93\linewidth}%
{
\begin{tikzpicture}[overlay, remember picture]
\def\widthofsample{2.5mm}
\def\heightofsample{2.5mm}
\fill [remember picture, overlay, fill=black]
($ (current page.south east) + (-\widthofsample,0) $)
rectangle ++(\widthofsample, \heightofsample);
\fill [remember picture, overlay, fill=cyan]
($ (current page.south east) + (-\widthofsample,\heightofsample) $)
rectangle ++(\widthofsample, \heightofsample);
\fill [remember picture, overlay, fill=magenta]
($ (current page.south east) + (-\widthofsample,2*\heightofsample) $)
rectangle ++(\widthofsample, \heightofsample);
\fill [remember picture, overlay, fill=yellow]
($ (current page.south east) + (-\widthofsample,3*\heightofsample) $)
rectangle ++(\widthofsample, \heightofsample);
\fill [remember picture, overlay, fill=red]
($ (current page.south east) + (-\widthofsample,5*\heightofsample) $)
rectangle ++(\widthofsample, \heightofsample);
\fill [remember picture, overlay, fill=green]
($ (current page.south east) + (-\widthofsample,6*\heightofsample) $)
rectangle ++(\widthofsample, \heightofsample);
\fill [remember picture, overlay, fill=blue]
($ (current page.south east) + (-\widthofsample,7*\heightofsample) $)
rectangle ++(\widthofsample, \heightofsample);
\foreach \graysample in {1, 2, ..., 10}
{
\pgfmathsetmacro{\currentgray}{100 - (10 * (\graysample - 1))}
\fill [remember picture, overlay, fill=black!\currentgray]
($ (current page.north east) + (-\widthofsample,-\graysample*\heightofsample) $)
rectangle ++(\widthofsample, \heightofsample);
}
\end{tikzpicture}
}
\end{minipage}
\thispagestyle{empty}
\newpage