Created
June 26, 2020 12:29
-
-
Save ulaulaman/2d2487406ab115451987fb3f300331e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{standalone} | |
% | |
\usepackage{tikz} | |
\usetikzlibrary{backgrounds} | |
% | |
\usetikzlibrary{bending,arrows.meta} | |
\usepackage{tkz-euclide} | |
\usetkzobj{all} | |
\usepackage{xcolor} | |
% | |
\definecolor{space}{HTML}{0A2543} | |
\definecolor{mars}{HTML}{DC7B4E} | |
\definecolor{title}{HTML}{FBA706} | |
\definecolor{lsb}{HTML}{D8603E} | |
% | |
\usepackage{fontspec} | |
\setmainfont{Open Dyslexic} | |
% | |
\title{Squares} | |
\begin{document} | |
\begin{tikzpicture}[background rectangle/.style={fill=black},show background rectangle] | |
% | |
\begin{scope} | |
\tkzDefPoint(0,0){A} | |
\tkzDefPoint(8,0){B} | |
\tkzDefSquare(A,B) | |
\tkzDrawSquare[color=white,fill=space](A,B) | |
\end{scope} | |
% | |
\begin{scope}[shift={(8,0)}, scale=0.5, rotate around={30:(8,0)}] | |
\tkzDefPoint(0,0){A} | |
\tkzDefPoint(8,0){B} | |
\tkzDefSquare(A,B) | |
\tkzDrawSquare[color=white,fill=lsb,opacity=0.8](A,B) | |
\end{scope} | |
% | |
\begin{scope}[shift={(12,0)}, scale=0.25, rotate around={60:(12,0)}] | |
\tkzDefPoint(0,0){A} | |
\tkzDefPoint(8,0){B} | |
\tkzDefSquare(A,B) | |
\tkzDrawSquare[color=white,fill=mars,opacity=0.6](A,B) | |
\end{scope} | |
% | |
\begin{scope}[shift={(14,0)}, scale=0.125, rotate around={75:(14,0)}] | |
\tkzDefPoint(0,0){A} | |
\tkzDefPoint(8,0){B} | |
\tkzDefSquare(A,B) | |
\tkzDrawSquare[color=white,fill=title,opacity=0.4](A,B) | |
\end{scope} | |
% | |
\end{tikzpicture} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment