[pstricks] Using pscoil/pszigzag along arc
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Tue Apr 29 10:17:42 CEST 2008
John Smith schrieb:
> I would like to draw a coil or zizgag along a specified circular arc of some
> radius and start and end angle similar to psarc. Does anyone know how to do
> this?
\documentclass[12pt,a4paper]{article}
\usepackage{pst-plot}
\begin{document}
\def\Radius{3 }
\def\radius{0.3 }
\def\speed{40 }
\pspicture(-3.5,-3.5)(3.5,3.5)
\parametricplot[plotpoints=1000]{0}{360}{
\radius t \speed mul cos mul
\Radius t cos mul add
\radius t \speed mul sin mul
\Radius t sin mul add
}
\endpspicture
\pspicture(-3.5,-3.5)(3.5,3.5)
\parametricplot[plotpoints=1000]{100}{330}{
\radius t \speed mul cos mul
\Radius t cos mul add
\radius t \speed mul sin mul
\Radius t sin mul add
}
\endpspicture
\end{document}
Herbert
More information about the PSTricks
mailing list