tikzdraw/astronomy/equinox_solstice-en.tex

48 lines
1.9 KiB
TeX

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{backgrounds}
\usepackage{xcolor}
%
\definecolor{earth}{HTML}{0089FA}
%
\usepackage[defaultfam,tabular,lining]{montserrat}
\usepackage[T1]{fontenc}
\renewcommand*\oldstylenums[1]{{\fontfamily{Montserrat-TOsF}\selectfont #1}}
%
\title{Equinozi e solstizi}
\begin{document}
\tikzset{partial ellipse/.style args = {#1:#2:#3}{insert path={+ (#1:#3) arc (#1:#2:#3)}}}
\begin{tikzpicture}%[background rectangle/.style={fill=space},show background rectangle]
\begin{scope}
%ecliptic back
\draw[rotate=22] (0,0) [color=blue,dashed,partial ellipse=0:180:7.5 and 1.9];
%back
\draw (0,0) [color=red,dashed,partial ellipse=0:180:7.5 and 1.9];
%earth
\shade [ball color=earth] (0,0) circle (1.5);
%front
\draw (0,0) [color=red,partial ellipse=180:360:7.5 and 1.9];
%ecliptic front
\draw (0,0)[rotate=22] [color=blue,partial ellipse=180:360:7.5 and 1.9] node [midway, above, sloped,opacity=1,rotate=22] (TextNode) {\textcolor{earth}{\fontsize{20}{21}\selectfont $\qquad\qquad\;$ Ecliptic}};
%
\draw (0,0) circle (7.5);
%
\draw[fill] (6.9,3) circle (0.2);
\draw[fill] (-6.9,-3) circle (0.2);
\draw[fill] (0.3,-1.9) circle (0.2);
\draw[fill] (-0.3,1.9) circle (0.2);
%
\node at (9,3.5) {\textcolor{black}{\fontsize{20}{21}\selectfont Summer}};
\node at (9,2.5) {\textcolor{black}{\fontsize{20}{21}\selectfont solstice}};
\node at (-9,-2.5) {\textcolor{black}{\fontsize{20}{21}\selectfont Winter}};
\node at (-9,-3.5) {\textcolor{black}{\fontsize{20}{21}\selectfont solstice}};
%
\node at (2.3,-2.7) {\textcolor{black}{\fontsize{20}{21}\selectfont Spring}};
\node at (2.3,-3.7) {\textcolor{black}{\fontsize{20}{21}\selectfont equinox}};
\node at (-2.3,3.7) {\textcolor{black}{\fontsize{20}{21}\selectfont Autumn}};
\node at (-2.3,2.7) {\textcolor{black}{\fontsize{20}{21}\selectfont equinox}};
\end{scope}
\end{tikzpicture}
%
\end{document}