summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/lapdf/drawing.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/lapdf/drawing.tex')
-rw-r--r--macros/latex/contrib/lapdf/drawing.tex60
1 files changed, 60 insertions, 0 deletions
diff --git a/macros/latex/contrib/lapdf/drawing.tex b/macros/latex/contrib/lapdf/drawing.tex
new file mode 100644
index 0000000000..49ca039071
--- /dev/null
+++ b/macros/latex/contrib/lapdf/drawing.tex
@@ -0,0 +1,60 @@
+\input preamble
+
+% --------------------------------------------------------------------------
+\begin{document}
+\unitlength0.93cm
+
+\begin{center}
+{\Huge \bf{Drawing with \Lapdf}}
+\bigskip
+
+\begin{lapdf}(12,12)(-6,-6)
+ \Setwidth(0.01)
+ \Rect(-6,-6,12,12)
+ \Line(-6,0)(+6,0) \Stroke
+ \Line(0,-6)(0,+6) \Stroke
+ \Dash(2)
+ \Line(-6,-6)(+6,+6) \Stroke
+ \Dash(0)
+ \Gsave
+ \Dash(1)
+ \Moveto(-6,0)
+ \Lineto(-2,6)
+ \Lineto(2,-6)
+ \Lineto(6,0) \Stroke
+ \Grestore
+ \Setwidth(0.02)
+ \Red
+ \Curve(64)(-6,0)(-2,6)(2,-6)(6,0) \Closepath \Gfill(0.9)
+ \Cyan
+ \Dash(2)
+ \Rcurve(96)(-5,0,3)(0,8,1)(5,0,3) \Stroke
+ \Rcurve(96)(-5,0,3)(0,8,-1)(5,0,3) \Stroke
+ \Dash(0)
+ \Green
+ \Rcurve(96)(-5,0,1)(0,8,1)(5,0,1) \Stroke
+ \Yellow
+ \Rcurve(96)(-5,0,1)(0,8,3)(5,0,1) \Stroke
+ \Rcurve(96)(-5,0,1)(0,8,0)(5,0,1) \Stroke
+ \Magenta
+ \Circle(64)(0,0,5) \Stroke
+ \Setcol(0.3,0.3,0.3)
+ \Curve(64)(-5,0)(0,-8)(5,0) \Stroke
+\end{lapdf}
+\bigskip
+
+\begin{lapdf}(12,12)(-6,-6)
+ \Setwidth(0.02)
+ \Setjoin(1)
+ \Red
+ \Rotate(45)
+ \Scale(1,0.8)
+ \Circle(64)(0,0,1.86)
+ \Circle(64)(0,0,4)
+ \Circle(64)(0,0,6)
+ \Fill(1,1,0)
+ \Polygon(0,6)(3.527,-4.854)(-5.706,1.854)(5.706,1.854)(-3.527,-4.854)(0,6)
+ \Fill(0,1,1)
+\end{lapdf}
+\end{center}
+\end{document}