I would like to draw a rectangle in perspective which looks like this
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,1) -- (0,3) -- (2,5) -- (2,3) -- cycle;
\end{tikzpicture}
\end{document}
Is there an alternative way by declaring a rectangle
\tikzstyle{my_rectangle} = [rectangle, minimum width=2cm, minimum height=1cm]
and rotate it around the upward pointing axis? And if yes how would I do the rotation?
\tikzstyle
is deprecated.