tikzdraw/astronomy/fasi_lunari.tex

59 lines
2.1 KiB
TeX
Raw Normal View History

2021-12-20 23:14:57 +01:00
\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)}},
2023-04-28 21:00:20 +02:00
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];
},
2021-12-20 23:14:57 +01:00
}
\begin{tikzpicture}[background rectangle/.style={fill=white},show background rectangle,]
\begin{scope}
2023-04-28 21:00:20 +02:00
\draw [fill=space,ultra thick] (1.5,8) rectangle (28,1);
2022-06-05 10:50:31 +02:00
%
2023-04-28 21:00:20 +02:00
\pic at (4.2,5) {fullmoon};
\pic at (11.2,5) {thirdmoon};
\pic at (18.2,5) {newmoon};
\pic at (25.2,5) {firstmoon};
2021-12-20 23:14:57 +01:00
%
2023-04-28 21:00:20 +02:00
\node at (4.2,7) {\textcolor{white}{\fontsize{17}{18}\selectfont Luna piena}};
2023-04-28 21:18:44 +02:00
\node at (4.2,3) {\textcolor{white}{\fontsize{17}{18}\selectfont 5 maggio}};
\node at (4.2,2) {\textcolor{white}{\fontsize{17}{18}\selectfont 19:34}};
2021-12-20 23:14:57 +01:00
%
2023-04-28 21:00:20 +02:00
\node at (11.2,7) {\textcolor{white}{\fontsize{17}{18}\selectfont Terzo Quarto}};
2023-04-28 21:18:44 +02:00
\node at (11.2,3) {\textcolor{white}{\fontsize{17}{18}\selectfont 12 maggio}};
\node at (11.2,2) {\textcolor{white}{\fontsize{17}{18}\selectfont 16:28}};
2022-03-25 16:55:43 +01:00
% quinta fase
2023-04-28 21:00:20 +02:00
\node at (18.2,7) {\textcolor{white}{\fontsize{17}{18}\selectfont Luna Nuova}};
2023-04-28 21:18:44 +02:00
\node at (18.2,3) {\textcolor{white}{\fontsize{17}{18}\selectfont 19 maggio}};
\node at (18.2,2) {\textcolor{white}{\fontsize{17}{18}\selectfont 17:53}};
2022-12-01 11:22:05 +01:00
%
2023-04-28 21:00:20 +02:00
\node at (25.2,7) {\textcolor{white}{\fontsize{17}{18}\selectfont Primo Quarto}};
2023-04-28 21:18:44 +02:00
\node at (25.2,3) {\textcolor{white}{\fontsize{17}{18}\selectfont 27 maggio}};
\node at (25.2,2) {\textcolor{white}{\fontsize{17}{18}\selectfont 17:22}};
2021-12-20 23:14:57 +01:00
\end{scope}
\end{tikzpicture}
\end{document}