Debian Codegraph @

texmf-dist/doc/latex/lapdf/drawing.tex

raw
1 \input preamble
2
3 % --------------------------------------------------------------------------
4 \begin{document}
5 \unitlength0.93cm
6
7 \begin{center}
8 {\Huge \bf{Drawing with \Lapdf}}
9 \bigskip
10
11 \begin{lapdf}(12,12)(-6,-6)
12 \Setwidth(0.01)
13 \Rect(-6,-6,12,12)
14 \Line(-6,0)(+6,0) \Stroke
15 \Line(0,-6)(0,+6) \Stroke
16 \Dash(2)
17 \Line(-6,-6)(+6,+6) \Stroke
18 \Dash(0)
19 \Gsave
20 \Dash(1)
21 \Moveto(-6,0)
22 \Lineto(-2,6)
23 \Lineto(2,-6)
24 \Lineto(6,0) \Stroke
25 \Grestore
26 \Setwidth(0.02)
27 \Red
28 \Curve(64)(-6,0)(-2,6)(2,-6)(6,0) \Closepath \Gfill(0.9)
29 \Cyan
30 \Dash(2)
31 \Rcurve(96)(-5,0,3)(0,8,1)(5,0,3) \Stroke
32 \Rcurve(96)(-5,0,3)(0,8,-1)(5,0,3) \Stroke
33 \Dash(0)
34 \Green
35 \Rcurve(96)(-5,0,1)(0,8,1)(5,0,1) \Stroke
36 \Yellow
37 \Rcurve(96)(-5,0,1)(0,8,3)(5,0,1) \Stroke
38 \Rcurve(96)(-5,0,1)(0,8,0)(5,0,1) \Stroke
39 \Magenta
40 \Circle(64)(0,0,5) \Stroke
41 \Setcol(0.3,0.3,0.3)
42 \Curve(64)(-5,0)(0,-8)(5,0) \Stroke
43 \end{lapdf}
44 \bigskip
45
46 \begin{lapdf}(12,12)(-6,-6)
47 \Setwidth(0.02)
48 \Setjoin(1)
49 \Red
50 \Rotate(45)
51 \Scale(1,0.8)
52 \Circle(64)(0,0,1.86)
53 \Circle(64)(0,0,4)
54 \Circle(64)(0,0,6)
55 \Fill(1,1,0)
56 \Polygon(0,6)(3.527,-4.854)(-5.706,1.854)(5.706,1.854)(-3.527,-4.854)(0,6)
57 \Fill(0,1,1)
58 \end{lapdf}
59 \end{center}
60 \end{document}