[pstricks] Bezier curve
Poul Riis
Poul.Riis at skolekom.dk
Thu Apr 2 09:42:39 CEST 2015
The project below works, but if I replace pscurve with psbcurve I get the
following error message (even if an identical psbcurve command at the end
of the figure works):
Misplaced special graphics object command }
Why?
Poul Riis
\documentclass{minimal}
\usepackage[dvips,x11names]{xcolor}
\usepackage{pstricks}
\usepackage{pst-bezier}
\begin{document}
\pstVerb{/hf 5 def /bf 2.15 def /bl 0.5 def }
\begin{pspicture}(-0.5,-0.5)(3.5,5.0)
\pscustom*[linecolor=Red3,fillstyle=solid]{
\pscurve(!bf 0)(!bf hf 2 div)(!0 hf)
%\psbcurve(!bf 0)(!bf hf 2 div)(!0 hf)
\psline(!0 hf)(!0 0)(!bf 0)
}
\psline[linestyle=dashed](!0 0)(!bl neg 0)(!bl neg hf)(!0 hf)
\psbcurve[linecolor=Blue1,linewidth=1pt](!bf 0)l(!bf hf 2 div)(!0 hf)
\end{pspicture}
\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20150402/c8e51264/attachment.html>
More information about the PSTricks
mailing list