-
Notifications
You must be signed in to change notification settings - Fork 1
/
david_star.tex
executable file
·48 lines (48 loc) · 1.29 KB
/
david_star.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
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{backgrounds}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usepackage{xcolor}
\definecolor{space}{HTML}{0A2543}
\definecolor{earth}{HTML}{0089FA}
%
\title{David Star}
\begin{document}
\begin{tikzpicture}
\def\r{5}
\tkzDefPoint(-2*\r,\r+1){R1}
\tkzDefPoint(2*\r,-\r-1){R2}
%
\draw[fill=space] (R1) rectangle (R2);
%
\foreach \i in {1,2,...,30}{
\tkzGetRandPointOn[rectangle = R1 and R2]{ai}
\draw[color=white, fill=white] (ai) circle (0.1cm);
}
\begin{scope}[rotate around={90:(0,0)}]
\tkzDefPoint(0,0){O}
\tkzDefPoint(-\r,0){A}
\tkzDefPoint(\r,0){D}
%
\tkzDefCircle[radius](O,A)
\tkzDefCircle[radius](A,O)
\tkzDefCircle[radius](D,O)
%
\tkzInterCC(O,A)(A,O) \tkzGetPoints{B}{F}
\tkzInterCC(O,A)(D,O) \tkzGetPoints{E}{C}
%
\tkzInterLL(A,C)(F,B) \tkzGetPoint{A1}
\tkzInterLL(B,D)(A,C) \tkzGetPoint{B1}
\tkzInterLL(C,E)(B,D) \tkzGetPoint{C1}
\tkzInterLL(D,F)(E,C) \tkzGetPoint{D1}
\tkzInterLL(A,E)(D,F) \tkzGetPoint{E1}
\tkzInterLL(A,E)(F,B) \tkzGetPoint{F1}
%
\tkzDrawPolygon[fill=white](A,A1,B,B1,C,C1,D,D1,E,E1,F,F1)
\tkzDrawPolygon[color=earth,line width=1.5mm](B,F,D)
\tkzDrawPolygon[color=earth,line width=1.5mm](A,E,C)
\end{scope}
%
\end{tikzpicture}
\end{document}