Debian Codegraph @

texmf-dist/doc/latex/visualpstricks/Source/bezier.tex

raw
1 \label{bezier}
2 %\section[Courbes de Bezier]{Courbes de Bezier \cite{pst-bezier}}
3 \SSCT{Courbes de Bezier}{Bezier Curves}
4
5
6 \TFRGB{utilisation du module}{Package} \og \textbf{pst-bezier} \fg{} \label{pst-bezier}
7
8 %\subsection{Commande psbcurve}
9 \SbSSCT{Commande psbcurve}{psbcurve command}
10
11 \begin{tabular}{|c|} \hline
12 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
13 \psbcurve(1,1)(2,2)(3,1)(4,2)
14 \end{psgraph}
15 \\ \hline
16 \BSS{psbcurve}(1,1)(2,2)(3,1)(4,2) \BSI{psbcurve}{pst-bezier}
17 \\ \hline
18 \end{tabular}
19
20 \bigskip
21 \begin{tabular}{|c|} \hline
22 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
23 \psbcurve[showpoints=true](1,1)(2,2)(3,1)(4,2)
24 \end{psgraph}
25 \\ \hline
26 \BS{psbcurve}{\red [showpoints=true]}(1,1)(2,2)(3,1)(4,2)
27 \\ \hline
28 \end{tabular}
29
30
31 %\subsection{Modificateurs }
32 \SbSSCT{Modificateurs}{Modificators}
33
34 \begin{tabular}{|c|c|} \hline
35 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
36 \psset{showpoints=true}
37 \psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
38 \psbcurve[linecolor=red](1,1)(2,2)l(2,1)(3,1)(4,2)
39 \end{psgraph}
40 &
41 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
42 \psset{showpoints=true}
43 \psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
44 \psbcurve[linecolor=red](1,1)(2,2)r(2,1)(3,1)(4,2)
45 \end{psgraph}
46 \\ \hline
47 \BS{psbcurve}(1,1)(2,2){\red l(2,1)}(3,1)(4,2)
48 &
49 \BS{psbcurve}(1,1)(2,2){\red r(2,1)}(3,1)(4,2)
50 \\ \hline
51 \end{tabular}
52
53
54 \bigskip
55
56 \begin{tabular}{|c|c|} \hline
57 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
58 \psset{showpoints=true}
59 \psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
60 \psbcurve[linecolor=red](1,1)(2,2)L(2,1)(3,1)(4,2)
61 \end{psgraph}
62 &
63 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
64 \psset{showpoints=true}
65 \psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
66 \psbcurve[linecolor=red](1,1)(2,2)L(3,2.5)(3,1)(4,2)
67 \end{psgraph}
68 \\ \hline
69 \BS{psbcurve}(1,1)(2,2){\red L(2,1)}(3,1)(4,2)
70 &
71 \BS{psbcurve}(1,1)(2,2){\red L(3,2.5)}(3,1)(4,2)
72 \\ \hline
73 \end{tabular}
74
75 \bigskip
76
77 \begin{tabular}{|c|c|} \hline
78 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
79 \psset{showpoints=true}
80 v\psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2) \psbcurve[linecolor=red](1,1)(2,2)tl{0.5}(3,1)(4,2)
81
82 \end{psgraph}
83 &
84 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
85 \psset{showpoints=true}
86 \psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
87 \psbcurve[linecolor=red](1,1)(2,2)tl{1.5}(3,1)(4,2)
88 \end{psgraph}
89 \\ \hline
90 \BS{psbcurve}(1,1)(2,2){\red tl\AC{0.5} }(3,1)(4,2)
91 &
92 \BS{psbcurve}(1,1)(2,2){\red tl\AC{1.5} }(3,1)(4,2)
93 \\ \hline
94 \end{tabular}
95
96 \bigskip
97
98 \begin{tabular}{|c|c|} \hline
99 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
100 \psset{showpoints=true}
101 \psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2) \psbcurve[linecolor=red](1,1)(2,2)tr{0.5}(3,1)(4,2)
102 \end{psgraph}
103 &
104 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
105 \psset{showpoints=true}
106 \psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
107 \psbcurve[linecolor=red](1,1)(2,2)tr{1.5}(3,1)(4,2)
108 \end{psgraph}
109 \\ \hline
110 \BS{psbcurve}(1,1)(2,2){\red tr\AC{0.5} }(3,1)(4,2)
111 &
112 \BS{psbcurve}(1,1)(2,2){\red tr\AC{1.5} }(3,1)(4,2)
113 \\ \hline
114 \end{tabular}
115
116 \bigskip
117
118 \begin{tabular}{|c|c|} \hline
119 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
120 \psset{showpoints=true}
121 \psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2) \psbcurve[linecolor=red](1,1)(2,2)ts{0.5}(3,1)(4,2)
122
123 \end{psgraph}
124 &
125 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=-1 5, subticks=0](0,0)(-1,0)(5,3){6cm}{3cm }
126 \psset{showpoints=true}
127 \psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
128 \psbcurve[linecolor=red](1,1)(2,2)ts{1.5}(3,1)(4,2)
129 \end{psgraph}
130 \\ \hline
131 \BS{psbcurve}(1,1)(2,2){\red ts\AC{0.5} }(3,1)(4,2)
132 &
133 \BS{psbcurve}(1,1)(2,2){\red ts\AC{1.5} }(3,1)(4,2)
134 \\ \hline
135 \end{tabular}
136
137 \bigskip
138
139
140 \begin{tabular}{|c|c|} \hline
141 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
142 \psset{showpoints=true}
143 \psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2) \psbcurve[linecolor=red](1,1)(2,2)T{0.5}(3,1)(4,2)
144 \end{psgraph}
145 &
146 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 6, subticks=0](0,0)(0,0)(6,3){6cm}{3cm }
147 \psset{showpoints=true}
148 \psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
149 \psbcurve[linecolor=red](1,1)(2,2)T{1.5}(3,1)(4,2)
150 \end{psgraph}
151 \\ \hline
152 \BS{psbcurve}(1,1)(2,2){\red T\AC{0.5} }(3,1)(4,2)
153 &
154 \BS{psbcurve}(1,1)(2,2){\red T\AC{1.5} }(3,1)(4,2)
155 \\ \hline
156 \end{tabular}
157 \bigskip
158
159 \begin{tabular}{|c|c|} \hline
160 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
161 \psset{showpoints=true}
162 \psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2) \psbcurve[linecolor=red](1,1)(2,2)tr{-0.5}(3,1)(4,2)
163 \end{psgraph}
164 &
165 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=-1 5, subticks=0](0,0)(-1,0)(5,3){6cm}{3cm }
166 \psset{showpoints=true}
167 \psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
168 \psbcurve[linecolor=red](1,1)(2,2)tl{-0.5}(3,1)(4,2)
169 \end{psgraph}
170 \\ \hline
171 \BS{psbcurve}(1,1)(2,2){\red tr\AC{-0.5} }(3,1)(4,2)
172 &
173 \BS{psbcurve}(1,1)(2,2){\red tl\AC{-0.5} }(3,1)(4,2)
174 \\ \hline
175 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
176 \psset{showpoints=true}
177 \psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2) \psbcurve[linecolor=red](1,1)(2,2)ts{-0.5}(3,1)(4,2)
178
179 \end{psgraph}
180 &
181 \\ \hline
182 \BS{psbcurve}(1,1)(2,2){\red ts\AC{-0.5} }(3,1)(4,2)
183 &
184 \\ \hline
185 \end{tabular}
186 \bigskip
187
188 %\subsection{Paramètre bcurveTension}
189 \SbSSCT{Paramètre bcurveTension}{bcurveTension parameter}
190
191 \begin{tabular}{|c|c|} \hline
192 \multicolumn{2}{|c|}{\BS{psbcurve}[\RDD{bcurveTension}=1.5,linecolor=red](1,1)(2,2){\red ts\AC{0.5} }(3,1)(4,2) \RDI{bcurveTension}{pst-bezier}} \\ \hline
193 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
194 \psset{showpoints=true}
195 \psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2) \psbcurve[bcurveTension=0.5,linecolor=red](1,1)(2,2)(3,1)(4,2)
196
197 \end{psgraph}
198 &
199 \begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=-1 6, subticks=0](0,0)(-1,0)(6,3){7cm}{3cm }
200 \psset{showpoints=true}
201 \psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
202 \psbcurve[bcurveTension=1.5,linecolor=red](1,1)(2,2)(3,1)(4,2)
203 \end{psgraph}
204 \\ \hline
205 bcurveTension=0.5
206 &
207 bcurveTension=1.5
208 \\ \hline
209 \end{tabular}
210