summaryrefslogtreecommitdiff
path: root/info/visualpstricks/Source/bezier.tex
diff options
context:
space:
mode:
Diffstat (limited to 'info/visualpstricks/Source/bezier.tex')
-rw-r--r--info/visualpstricks/Source/bezier.tex210
1 files changed, 210 insertions, 0 deletions
diff --git a/info/visualpstricks/Source/bezier.tex b/info/visualpstricks/Source/bezier.tex
new file mode 100644
index 0000000000..7707f6f7db
--- /dev/null
+++ b/info/visualpstricks/Source/bezier.tex
@@ -0,0 +1,210 @@
+\label{bezier}
+%\section[Courbes de Bezier]{Courbes de Bezier \cite{pst-bezier}}
+\SSCT{Courbes de Bezier}{Bezier Curves}
+
+
+\TFRGB{utilisation du module}{Package} \og \textbf{pst-bezier} \fg{} \label{pst-bezier}
+
+%\subsection{Commande psbcurve}
+\SbSSCT{Commande psbcurve}{psbcurve command}
+
+\begin{tabular}{|c|} \hline
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
+\psbcurve(1,1)(2,2)(3,1)(4,2)
+\end{psgraph}
+\\ \hline
+\BSS{psbcurve}(1,1)(2,2)(3,1)(4,2) \BSI{psbcurve}{pst-bezier}
+\\ \hline
+\end{tabular}
+
+\bigskip
+\begin{tabular}{|c|} \hline
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
+\psbcurve[showpoints=true](1,1)(2,2)(3,1)(4,2)
+\end{psgraph}
+\\ \hline
+\BS{psbcurve}{\red [showpoints=true]}(1,1)(2,2)(3,1)(4,2)
+\\ \hline
+\end{tabular}
+
+
+%\subsection{Modificateurs }
+\SbSSCT{Modificateurs}{Modificators}
+
+\begin{tabular}{|c|c|} \hline
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
+\psset{showpoints=true}
+\psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
+\psbcurve[linecolor=red](1,1)(2,2)l(2,1)(3,1)(4,2)
+\end{psgraph}
+&
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
+\psset{showpoints=true}
+\psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
+\psbcurve[linecolor=red](1,1)(2,2)r(2,1)(3,1)(4,2)
+\end{psgraph}
+\\ \hline
+\BS{psbcurve}(1,1)(2,2){\red l(2,1)}(3,1)(4,2)
+&
+\BS{psbcurve}(1,1)(2,2){\red r(2,1)}(3,1)(4,2)
+\\ \hline
+\end{tabular}
+
+
+\bigskip
+
+\begin{tabular}{|c|c|} \hline
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
+\psset{showpoints=true}
+\psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
+\psbcurve[linecolor=red](1,1)(2,2)L(2,1)(3,1)(4,2)
+\end{psgraph}
+&
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
+\psset{showpoints=true}
+\psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
+\psbcurve[linecolor=red](1,1)(2,2)L(3,2.5)(3,1)(4,2)
+\end{psgraph}
+\\ \hline
+\BS{psbcurve}(1,1)(2,2){\red L(2,1)}(3,1)(4,2)
+&
+\BS{psbcurve}(1,1)(2,2){\red L(3,2.5)}(3,1)(4,2)
+\\ \hline
+\end{tabular}
+
+\bigskip
+
+\begin{tabular}{|c|c|} \hline
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
+\psset{showpoints=true}
+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)
+
+\end{psgraph}
+ &
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
+\psset{showpoints=true}
+\psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
+\psbcurve[linecolor=red](1,1)(2,2)tl{1.5}(3,1)(4,2)
+\end{psgraph}
+ \\ \hline
+\BS{psbcurve}(1,1)(2,2){\red tl\AC{0.5} }(3,1)(4,2)
+&
+\BS{psbcurve}(1,1)(2,2){\red tl\AC{1.5} }(3,1)(4,2)
+\\ \hline
+\end{tabular}
+
+\bigskip
+
+\begin{tabular}{|c|c|} \hline
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
+\psset{showpoints=true}
+\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)
+\end{psgraph}
+&
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
+\psset{showpoints=true}
+\psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
+\psbcurve[linecolor=red](1,1)(2,2)tr{1.5}(3,1)(4,2)
+\end{psgraph}
+\\ \hline
+\BS{psbcurve}(1,1)(2,2){\red tr\AC{0.5} }(3,1)(4,2)
+&
+\BS{psbcurve}(1,1)(2,2){\red tr\AC{1.5} }(3,1)(4,2)
+\\ \hline
+\end{tabular}
+
+\bigskip
+
+\begin{tabular}{|c|c|} \hline
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
+\psset{showpoints=true}
+\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)
+
+\end{psgraph}
+&
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=-1 5, subticks=0](0,0)(-1,0)(5,3){6cm}{3cm }
+\psset{showpoints=true}
+\psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
+\psbcurve[linecolor=red](1,1)(2,2)ts{1.5}(3,1)(4,2)
+\end{psgraph}
+\\ \hline
+\BS{psbcurve}(1,1)(2,2){\red ts\AC{0.5} }(3,1)(4,2)
+&
+\BS{psbcurve}(1,1)(2,2){\red ts\AC{1.5} }(3,1)(4,2)
+\\ \hline
+\end{tabular}
+
+\bigskip
+
+
+\begin{tabular}{|c|c|} \hline
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
+\psset{showpoints=true}
+\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)
+\end{psgraph}
+&
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 6, subticks=0](0,0)(0,0)(6,3){6cm}{3cm }
+\psset{showpoints=true}
+\psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
+\psbcurve[linecolor=red](1,1)(2,2)T{1.5}(3,1)(4,2)
+\end{psgraph}
+\\ \hline
+\BS{psbcurve}(1,1)(2,2){\red T\AC{0.5} }(3,1)(4,2)
+&
+\BS{psbcurve}(1,1)(2,2){\red T\AC{1.5} }(3,1)(4,2)
+\\ \hline
+\end{tabular}
+\bigskip
+
+\begin{tabular}{|c|c|} \hline
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
+\psset{showpoints=true}
+\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)
+ \end{psgraph}
+&
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=-1 5, subticks=0](0,0)(-1,0)(5,3){6cm}{3cm }
+\psset{showpoints=true}
+\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)
+\end{psgraph}
+\\ \hline
+\BS{psbcurve}(1,1)(2,2){\red tr\AC{-0.5} }(3,1)(4,2)
+&
+\BS{psbcurve}(1,1)(2,2){\red tl\AC{-0.5} }(3,1)(4,2)
+\\ \hline
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
+ \psset{showpoints=true}
+ \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)
+
+\end{psgraph}
+&
+\\ \hline
+\BS{psbcurve}(1,1)(2,2){\red ts\AC{-0.5} }(3,1)(4,2)
+&
+\\ \hline
+\end{tabular}
+\bigskip
+
+%\subsection{Paramètre bcurveTension}
+\SbSSCT{Paramètre bcurveTension}{bcurveTension parameter}
+
+\begin{tabular}{|c|c|} \hline
+\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
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=0 5, subticks=0](0,0)(5,3){5cm}{3cm }
+\psset{showpoints=true}
+\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)
+
+\end{psgraph}
+&
+\begin{psgraph}[axesstyle=none,xticksize= 0 3 ,yticksize=-1 6, subticks=0](0,0)(-1,0)(6,3){7cm}{3cm }
+\psset{showpoints=true}
+\psbcurve[linecolor=blue,linestyle=dashed](1,1)(2,2)(3,1)(4,2)
+\psbcurve[bcurveTension=1.5,linecolor=red](1,1)(2,2)(3,1)(4,2)
+\end{psgraph}
+\\ \hline
+bcurveTension=0.5
+&
+bcurveTension=1.5
+\\ \hline
+\end{tabular}
+