1
0
mirror of https://github.com/ulaulaman/tikzdraw.git synced 2025-06-06 00:49:22 +02:00
Files
tikzdraw/astronomy/fasi_lunari.tex
2025-03-05 13:11:36 +01:00

60 lines
2.3 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)}},
newmoon/.pic = {
\draw [fill=moon] (0,0) circle (1.5cm);
\draw [fill=black, opacity=0.5] (0,0) circle (1.5cm);
},
firstmoon/.pic = {
\draw [fill=moon] (0,0) circle (1.5cm);
\draw [fill=black, opacity=0.5] (0,0) [partial ellipse=90:270:1.5 and 1.5];
},
fullmoon/.pic = {
\draw [fill=moon] (0,0) circle (1.5cm);
},
thirdmoon/.pic = {
\draw [fill=moon] (0,0) circle (1.5cm);
\draw [fill=black, opacity=0.5] (0,0) [partial ellipse=-90:90:1.5 and 1.5];
},
}
\begin{tikzpicture}[background rectangle/.style={fill=white},show background rectangle,]
\begin{scope}
\draw [fill=space,ultra thick] (1.5,8) rectangle (28,1);
%\draw [fill=space,ultra thick] (1.5,8) rectangle (30,1);
%
\pic at (4.2,5) {firstmoon};
\pic at (11.2,5) {fullmoon};
\pic at (18.2,5) {thirdmoon};
\pic at (25.2,5) {newmoon};
%
\node at (0.7 + 3.5,7) {\textcolor{white}{\fontsize{17}{18}\selectfont Primo quarto}};
\node at (0.7 + 3.5,3) {\textcolor{white}{\fontsize{17}{18}\selectfont 5 aprile}};
\node at (0.7 + 3.5,2) {\textcolor{white}{\fontsize{17}{18}\selectfont 04:14}};
%
\node at (0.7 + 3*3.5,7) {\textcolor{white}{\fontsize{17}{18}\selectfont Luna piena}};
\node at (0.7 + 3*3.5,3) {\textcolor{white}{\fontsize{17}{18}\selectfont 13 aprile}};
\node at (0.7 + 3*3.5,2) {\textcolor{white}{\fontsize{17}{18}\selectfont 02:22}};
%
\node at (0.7 + 5*3.5,7) {\textcolor{white}{\fontsize{17}{18}\selectfont Terzo quarto}};
\node at (0.7 + 5*3.5,3) {\textcolor{white}{\fontsize{17}{18}\selectfont 21 aprile}};
\node at (0.7 + 5*3.5,2) {\textcolor{white}{\fontsize{17}{18}\selectfont 03:35}};
%
\node at (0.7 + 7*3.5,7) {\textcolor{white}{\fontsize{17}{18}\selectfont Luna nuova}};
\node at (0.7 + 7*3.5,3) {\textcolor{white}{\fontsize{17}{18}\selectfont 27 aprile}};
\node at (0.7 + 7*3.5,2) {\textcolor{white}{\fontsize{17}{18}\selectfont 21:31}};
\end{scope}
\end{tikzpicture}
\end{document}