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
|
\documentclass{standalone}
\usepackage{tikz}
\usepackage{xcolor}
\definecolor{gray0}{HTML}{EEEEEE}
\definecolor{gray1}{HTML}{CCCCCC}
\definecolor{gray2}{HTML}{AAAAAA}
\definecolor{gray3}{HTML}{888888}
\definecolor{gray4}{HTML}{666666}
\definecolor{gray5}{HTML}{444444}
\definecolor{gray6}{HTML}{222222}
\definecolor{gray7}{HTML}{000000}
% sqrt(3)
\def\sqrtTh{1.732}
% pi
\def\pival{3.14159}
\begin{document}
\begin{tikzpicture}
\draw(0,0)--(2*\pival/3,2*\pival/\sqrtTh)--(4*\pival/3,0)--(2*\pival/3,-2*\pival/\sqrtTh)--cycle;
\fill[color=gray0](0,0)--(2*\pival/3,2*\pival/\sqrtTh)--(4*\pival/3,0)--(2*\pival/3,-2*\pival/\sqrtTh)--cycle;
\fill[color=gray1](2*\pival/3, 2*\pival/3/\sqrtTh)circle(1);
\fill[color=gray1](2*\pival/3,-2*\pival/3/\sqrtTh)circle(1);
\fill[color=gray2](2*\pival/3, 2*\pival/3/\sqrtTh)circle(0.5);
\fill[color=gray2](2*\pival/3,-2*\pival/3/\sqrtTh)circle(0.5);
\fill[color=gray3](2*\pival/3, 2*\pival/3/\sqrtTh)circle(0.25);
\fill[color=gray3](2*\pival/3,-2*\pival/3/\sqrtTh)circle(0.25);
\fill[color=gray4](2*\pival/3, 2*\pival/3/\sqrtTh)circle(0.125);
\fill[color=gray4](2*\pival/3,-2*\pival/3/\sqrtTh)circle(0.125);
\fill[color=gray5](2*\pival/3, 2*\pival/3/\sqrtTh)circle(0.0626);
\fill[color=gray5](2*\pival/3,-2*\pival/3/\sqrtTh)circle(0.0625);
\fill[color=gray6](2*\pival/3, 2*\pival/3/\sqrtTh)circle(0.03125);
\fill[color=gray6](2*\pival/3,-2*\pival/3/\sqrtTh)circle(0.03125);
\fill[color=gray7](2*\pival/3, 2*\pival/3/\sqrtTh)circle(0.015625);
\fill[color=gray7](2*\pival/3,-2*\pival/3/\sqrtTh)circle(0.015625);
\end{tikzpicture}
\end{document}
|