<br>Awesome! Beautiful! Love it!<br><br>I'm using something like<br><br>...<br><br>
\begin{document}<br> \psset{xunit=0.1cm,yunit=0.1cm}<br> \begin{pspicture}(125,20)<br> \psbezierIV[linewidth=4pt,showpoints=true]{<->}(0,2)(45,2)(60,40)(75,2)(120,2)<br> \end{pspicture}<br>
\end{document}<br><br>for my design purposes.<br><br>Thanks a lot!<br><br>J<br><br><br><div class="gmail_quote">On Wed, Mar 19, 2008 at 8:59 PM, Herbert Voss <<a href="mailto:Herbert.Voss@fu-berlin.de">Herbert.Voss@fu-berlin.de</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">a solution created with hot needles ...<br>
<br>
Herbert<br>
<br>
<br>
\documentclass{article}<br>
\usepackage{pst-plot}<br>
<br>
\makeatletter<br>
\pst@def{BezierQuartic}<<br>
] /Points ED % y4 x4 y3 x3 y2 x2 y1 x1 y0 x0<br>
/GetBezierCoor {<br>
/t ED % t on stack<br>
/t1 1 t sub def<br>
% the x coordinate<br>
Points 8 get t 4 exp mul % x0*B0(t)<br>
Points 6 get t 3 exp 4 mul mul t1 mul add % x1*B1(t)<br>
Points 4 get t 2 exp 6 mul mul t1 2 exp mul add % x2*B2(t)<br>
Points 2 get t 4 mul mul t1 3 exp mul add % x3*B3(t)<br>
Points 0 get t1 4 exp mul add % x4*B4(t)<br>
% the y coordinate<br>
Points 9 get t 4 exp mul % y0*B0(t)<br>
Points 7 get t 3 exp 4 mul mul t1 mul add % y1*B1(t)<br>
Points 5 get t 2 exp 6 mul mul t1 2 exp mul add % y2*B2(t)<br>
Points 3 get t 4 mul mul t1 3 exp mul add % y3*B3(t)<br>
Points 1 get t1 4 exp mul add % y4*B4(t)<br>
} def<br>
/epsilon 0.01 def<br>
/n 5 def<br>
epsilon GetBezierCoor % next Bezier point<br>
Points 0 get Points 1 get % starting point<br>
ArrowA moveto<br>
epsilon epsilon 1 {<br>
/t ED<br>
t GetBezierCoor<br>
t 0.9999 lt { lineto }{ 1 epsilon sub GetBezierCoor 4 2 roll ArrowB<br>
pop pop pop pop } ifelse<br>
} for ><br>
%\def\tx@BezierQuartic{BezierQuartic }<br>
\def\psbezierIV{\pst@object{psbezierIV}}<br>
\def\psbezierIV@i{%<br>
\pst@getarrows{%<br>
\begin@OpenObj<br>
\pst@getcoors[\psbezierIV@ii%<br>
}}<br>
\def\psbezierIV@ii{%<br>
\addto@pscode{%<br>
\tx@BezierQuartic<br>
\ifshowpoints \tx@BezierShowPoints \fi<br>
}%<br>
\end@OpenObj}<br>
%<br>
\makeatother<br>
<br>
\begin{document}<br>
\psset{xunit=0.2cm}<br>
\begin{pspicture}(40,15)<br>
\psbezierIV[linewidth=2pt,showpoints=true]{<->}(0,0)(10,5)(20,13)(30,5)(40,0)<br>
\end{pspicture}<br>
<br>
\end{document}<br>
_______________________________________________<br>
pstricks mailing list<br>
<a href="mailto:pstricks@tug.org">pstricks@tug.org</a><br>
<a href="http://tug.org/mailman/listinfo/pstricks" target="_blank">http://tug.org/mailman/listinfo/pstricks</a><br>
</blockquote></div><br>