This will be the base of our pyramid. In a 2D plane, it might look like a parallelogram due to perspective. We can use the following LaTeX code to draw a square:
\begin{verbatim}
\begin{tikzpicture}
\draw (0,0) -- (4,0) -- (4,4) -- (0,4) --
Show more…