[pstricks] Problem with psbezier curve

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sun Dec 7 20:15:40 CET 2008


Loïc schrieb:
> Hello
> 
> I'm working on quadratic PsBezier curve.

the basic \psbezier is always a cubic one. If there  are
only three points given, the forth one is the current point
or (0,0) if no one exists.

A quadratic bezier is possible with pst-func. For more informations
see documentation.

\documentclass[10pt]{article}
\usepackage{pst-func}
\pagestyle{empty}

\begin{document}

\psset{unit=1mm}

\begin{pspicture}(0,0)(80,80)
\parametricplot[linecolor=blue,linewidth=5pt,
  algebraic=true]{0}{1}{t^2*80|2*t*(1-t)*80}
\psBezier2[showpoints=true,linecolor=black!30](0,0)(0,80)(80,0)
\end{pspicture}

\end{document}

Herbert


More information about the PSTricks mailing list