48 lines
1.6 KiB
TeX
48 lines
1.6 KiB
TeX
\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}
|