tikzdraw/graphics/david_star.tex

48 lines
1.3 KiB
TeX
Raw Normal View History

2021-01-28 09:16:26 +01:00
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{backgrounds}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usepackage{xcolor}
\definecolor{space}{HTML}{0A2543}
\definecolor{earth}{HTML}{0089FA}
%
2021-02-01 21:55:59 +01:00
\title{David Star}
2021-01-28 09:16:26 +01:00
\begin{document}
2021-02-01 21:55:59 +01:00
\begin{tikzpicture}
2021-01-28 09:16:26 +01:00
\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}