Debian Codegraph @

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

raw
1 \input preamble.tex
2
3 % ---------------------------------------------------------------------------
4 \begin{document}
5 \unitlength1.125cm
6
7 \begin{center}
8 {\Huge \bf{Integral Bezier Curves}}
9 \bigskip
10
11 \begin{lapdf}(16,16)(-8,-8)
12 \Dgray
13 \Rect(-8,-8,16,16) \Gfill(.9)
14 \Black
15 \Curve(80)(-8,-8)(8,8) \Stroke
16 \Red
17 \Curve(80)(-8,-8)(0,8)(8,-8) \Stroke
18 \Green
19 \Curve(80)(-8,-8)(-4,8)(4,-8)(8,8) \Stroke
20 \Blue
21 \Curve(80)(-8,-8)(-8,0)(12,-12)(0,8)(8,8) \Stroke
22 \Cyan
23 \Curve(96)(0,-8)(-8,-8)(-8,8)(8,8)(8,-8)(0,-8) \Stroke
24 \Magenta
25 \Curve(96)(-8,-8)(0,-8)(-8,0)(0,8)(8,0)(0,-8)(8,-8) \Stroke
26 \Yellow
27 \Curve(96)(-8,0)(-5.715,8)(-3.43,-16)(-1.145,8)(1.145,-8)(3.43,16)
28 (5.715,-8)(8,0) \Stroke
29 \end{lapdf}
30
31 \em{Curve-Degree: 1 black, 2 red, 3 green, 4 blue, 5 cyan, 6 magenta, 7 dyellow}
32 \end{center}
33
34 \newpage
35 \unitlength1cm
36
37 \begin{center}
38 {\Huge \bf{Rational Bezier Curves}}
39 \bigskip
40
41 \begin{lapdf}(18,18)(-9,-9)
42 \Dgray
43 \Rect(-9,-9,18,18) \Gfill(.9)
44 \Red
45 \Rcurve(80)(-9,9,1)(0,-9,4)(9,9,1) \Stroke
46 \Green
47 \Rcurve(80)(-9,-9,0.1)(-4.5,9,2.8)(4.5,-9,2.8)(9,9,0.1) \Stroke
48 \Blue
49 \Rcurve(80)(-9,9,0.1)(-4.5,-9,0.7)(0,9,1)(4.5,-9,0.7)(9,9,0.1) \Stroke
50 \Cyan
51 \Rcurve(96)(3,0,3)(0,3,1)(-3,0,1)(0,-3,1)(3,0,3) \Stroke
52 \Magenta
53 \Rcurve(96)(4,0,1)(4,16,0.2)(-12,8,0.2)(-12,-8,0.2)(4,-16,0.2)(4,0,1)
54 \Stroke
55 \Yellow
56 \Rcurve(96)(0,-9,1)(-9,-9,2)(-9,9,1)(9,9,1)(9,-9,2)(0,-9,1) \Stroke
57 \end{lapdf}
58
59 \em{Curve-Degree: 2 red, 3 green, 4 blue, 5 cyan, 6 magenta, 7 dyellow}
60 \end{center}
61 \end{document}