# [pstricks] define new linestyle

Fri Jan 29 23:04:05 CET 2010

Hello,

today I am interested in the defining of new line styles. I want to
create a wave which can be used by ncline and so on.

The following example shows the problem
%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\usepackage{pst-coil}
\begin{document}
\begin{pspicture}(3,3)
\cnode*(0,0){4pt}{A}\cnode*(3,3){4pt}{B}
\ncline[linestyle=dotted]{A}{B}
\end{pspicture}

\begin{pspicture}(3,3)
\cnode*(0,0){4pt}{A}\cnode*(3,3){4pt}{B}
\pszigzag(A)(B)
\end{pspicture}

\end{document}
%%%%%%%%%%%%%%%%%%%
The macro pszigzag isn't a nice wave *G*

I think the best solution ist something like this:
\ncline[linestyle=*wave*]{A}{B}
where I can define the amplitude and the frequency.

regards
Marco