tikzdraw/astronomy/fasi_lunari.tex

47 lines
1.9 KiB
TeX

\documentclass{standalone}
%
\usepackage{tikz}
\usetikzlibrary{backgrounds}
\usepackage{xcolor}
%
\definecolor{space}{HTML}{1F2C4E}
\definecolor{moon}{HTML}{AFAFAF}
%
\usepackage{fontspec}
\setmainfont{Open Dyslexic}
%
\title{Fasi lunari}
\begin{document}
\tikzset{
partial ellipse/.style args = {#1:#2:#3}{insert path={+ (#1:#3) arc (#1:#2:#3)}},
}
\begin{tikzpicture}[background rectangle/.style={fill=white},show background rectangle,]
\begin{scope}
\draw [fill=space,ultra thick] (3.8,8) rectangle (30,1);
%
\foreach \c in {1,3,...,7}
{
\draw [fill=moon] (2.7 + \c*3.5,5) circle (1.5cm);
}
\draw [fill=black, opacity=0.5] (2.7 + 3.5,5) circle (1.5cm);
\draw [fill=black, opacity=0.5] (2.7 + 3*3.5,5) [partial ellipse=90:270:1.5 and 1.5];
\draw [fill=black, opacity=0.5] (2.7 + 7*3.5,5) [partial ellipse=-90:90:1.5 and 1.5];
%
\node at (2.7 + 3.5,7) {\textcolor{white}{\fontsize{17}{18}\selectfont Luna Nuova}};
\node at (2.7 + 3.5,3) {\textcolor{white}{\fontsize{17}{18}\selectfont 2 marzo}};
\node at (2.7 + 3.5,2) {\textcolor{white}{\fontsize{17}{18}\selectfont 18:34}};
%
\node at (2.7 + 3*3.5,7) {\textcolor{white}{\fontsize{17}{18}\selectfont Primo Quarto}};
\node at (2.7 + 3*3.5,3) {\textcolor{white}{\fontsize{17}{18}\selectfont 10 marzo}};
\node at (2.7 + 3*3.5,2) {\textcolor{white}{\fontsize{17}{18}\selectfont 11:45}};
%
\node at (2.7 + 5*3.5,7) {\textcolor{white}{\fontsize{17}{18}\selectfont Luna Piena}};
\node at (2.7 + 5*3.5,3) {\textcolor{white}{\fontsize{17}{18}\selectfont 18 marzo}};
\node at (2.7 + 5*3.5,2) {\textcolor{white}{\fontsize{17}{18}\selectfont 08:17}};
%
\node at (2.7 + 7*3.5,7) {\textcolor{white}{\fontsize{17}{18}\selectfont Terzo Quarto}};
\node at (2.7 + 7*3.5,3) {\textcolor{white}{\fontsize{17}{18}\selectfont 25 marzo}};
\node at (2.7 + 7*3.5,2) {\textcolor{white}{\fontsize{17}{18}\selectfont 06:37}};
\end{scope}
\end{tikzpicture}
\end{document}