Skip to content

Instantly share code, notes, and snippets.

@ulaulaman
Created October 25, 2019 12:37
Show Gist options
  • Save ulaulaman/f8d7583e38658decaacb47712d544de3 to your computer and use it in GitHub Desktop.
Save ulaulaman/f8d7583e38658decaacb47712d544de3 to your computer and use it in GitHub Desktop.
\documentclass{standalone}
\usepackage{tikz}
\usepackage{xcolor}
\definecolor{space}{HTML}{0A2543}
\definecolor{earth}{HTML}{0089FA}
%
\title{Sun position}
\begin{document}
\begin{tikzpicture}
\begin{scope}[scale=4]
\draw [fill=space] (-4,4.5) rectangle (4,1.5);
\path[use as bounding box] (-4,4.5) rectangle (4,-0.5);
\foreach \i in {0,1,2,3,4}
\draw [fill=white,rotate around={-40 *\i:(0,1.5)}] (-2.5,2) circle (0.2cm);
\draw [fill=earth] (-4,-0.5) rectangle (4,1.5);
\end{scope}
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment