summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/lapdf/polygon.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/lapdf/polygon.tex')
-rw-r--r--macros/latex/contrib/lapdf/polygon.tex28
1 files changed, 28 insertions, 0 deletions
diff --git a/macros/latex/contrib/lapdf/polygon.tex b/macros/latex/contrib/lapdf/polygon.tex
new file mode 100644
index 0000000000..4c20dba387
--- /dev/null
+++ b/macros/latex/contrib/lapdf/polygon.tex
@@ -0,0 +1,28 @@
+\input preamble.tex
+
+% ---------------------------------------------------------------------------
+\begin{document}
+\begin{center}
+{\Huge\bf{Polygon}}
+\bigskip
+
+\begin{lapdf}(18,18)(-9,-9)
+ \Dgray
+ \Polygon(-9,4)(-4,9)(4,9)(9,4)(9,-4)(4,-9)(-4,-9)(-9,-4)(-9,4) \Stroke
+ \Red
+ \Polygon(-6.928,0)(-6.5,6.5)(0,6.928)(6.5,6.5)(6.928,0)
+ (6.5,-6.5)(0,-6.928)(-6.5,-6.5)(-6.928,0) \Stroke
+ \Green
+ \Polygon(-6.928,0)(-6,3.464)(-3.464,6)(0,6.928)(3.464,6)(6,3.464)(6.928,0)
+ (6,-3.464)(3.464,-6)(0,-6.928)(-3.464,-6)(-6,-3.464)(-6.928,0) \Stroke
+ \Blue
+ \Epolygon(3)(0,0)(6.928,0) \Stroke
+ \Cyan
+ \Epolygon(3)(0,0)(6.928,30) \Stroke
+ \Magenta
+ \Epolygon(3)(0,0)(6.928,60) \Stroke
+ \Yellow
+ \Epolygon(3)(0,0)(6.928,90) \Stroke
+\end{lapdf}
+\end{center}
+\end{document}