Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The objective is to make the bottom of a bullet has rounded corners. What I don't understand are:

  • Why does the ripple only occur on the bottom part but not on the top part even though the bottom one is just a reflection of the top one?

  • Why does the ripple occur for a specific value of linearc?

  • How to fix this problem?

\documentclass[pstricks]{standalone}
\usepackage{pst-plot}

\def\bottom{\psparametricplot{0}{2}{-t^2+6|t}\psline(1,2)}



\begin{document}
\multido{\n=0.7+0.1}{5}{%
\begin{pspicture}[algebraic](-5,-6)(7,3)
    \pscustom[fillstyle=solid,fillcolor=gray,linewidth=2pt,linearc=\n pt]
    {
        \bottom
        \reversepath
        \scale{1 -1}
        \bottom
        \closepath
    }
    \rput[tl](-4,2){\tt linearc=\n pt}
\end{pspicture}}

\end{document}

enter image description here

share|improve this question

1 Answer 1

up vote 3 down vote accepted
+150

I'm not sure about the source of the problem. However, here is a fix for it :)

\documentclass[pstricks]{standalone}
\usepackage{pst-plot}

\def\bottom{\psparametricplot{0}{2}{-t^2+6|t}\psline(1,2)}

\begin{document}
\multido{\n=0.1+0.1}{50}{%
\begin{pspicture}[algebraic](-5,-6)(7,3)
    \pscustom[fillstyle=solid,fillcolor=gray,linewidth=2pt,linearc=\n pt]
    {
        \bottom
        \reversepath
        \scale{1 -1}
        \rlineto(0,-0.001)
        \bottom
        \closepath
    }
    \rput[tl](-4,2){\tt linearc=\n pt}
\end{pspicture}}
\end{document}

enter image description here

share|improve this answer
    
It seems linearc has no effect for pscustom. –  In PSTricks we trust May 13 at 21:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.