summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/lapdf/recttria.tex
blob: 9d96bd6360cbef509434e1707c9baa5a2731e7a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
\input preamble.tex

\Defnum(\a,0)

% ---------------------------------------------------------------------------
\begin{document}
\unitlength1.2cm

\begin{center}
{\Huge \bf{Rectangle}}
\bigskip

\begin{lapdf}(15,15)(-7.5,-7.5)
 \Whilenum{\a<360}{%
  \Stepcol(0,23,2) \Rectangle(0,0)(4.5,6)(\a) \Stroke \Add(\a,15)}
\end{lapdf}

\newpage

{\Huge \bf{Triangle}}
\bigskip

\begin{lapdf}(15,15)(-7.5,-7.5)
 \Resetcol
 \Whilenum{\a<360}{%
  \Stepcol(0,23,2) \Triangle(0,0)(0,4.5)(6,4.5)(\a) \Stroke \Add(\a,15)}
\end{lapdf}
\end{center}
\end{document}