[pstricks] Fill polygon with wavy pattern
Martin Buchmann
Martin_Buchmann at gmx.net
Fri Feb 21 16:18:41 CET 2003
Herbert and all you others,
sorry for keep on bothering you but there is still something i don't
understand :-(
I tried to change Herbert's suggestion from yesterday a bit a attain a
pattern of small, seperated and shifted waves via changing the \wave
command to:
\newcommand{\wave}{%
\psset{xunit=0.01pt,yunit=1pt}
\begin{pspicture}(0,0)(760,4)
\rput(0,3){\psplot[linewidth=.5pt]{0}{360}{x sin}}%
\rput(400,1){\psplot[linewidth=.5pt]{0}{360}{x sin}}%
\end{pspicture}
}
Actually this is working fine besides the fact that there is a small gap
after every two rows of waves :-( I tried to set framesep to 0pt in the
actual picture but nothing changes. I'm sure there is just some
definition i missed so far and a small detail of the use of this boxfill
stuff i don't knwo yet. Would someone be so nice and point it out for me?
Thanks,
Martin
<--- complete example --->
\documentclass{article}
\usepackage{pstcol}
\usepackage{pst-grad}
\usepackage{pst-plot}
\usepackage[tiling]{pst-fill}
\definecolor{solidhigh}{rgb}{0.4, 0.4, 0.9}
\definecolor{solidlow}{rgb}{0.8, 0.8, 0.9}
\newcommand{\wave}{%
\psset{xunit=0.01pt,yunit=1pt}
\begin{pspicture}(0,0)(760,4)
\rput(0,3){\psplot[linewidth=.5pt]{0}{360}{x sin}}%
\rput(400,1){\psplot[linewidth=.5pt]{0}{360}{x sin}}%
\end{pspicture}
}
\begin{document}
\psboxfill{\wave}
\begin{pspicture}(3.0,1.9)(4.8,8.7)
\psframe[fillstyle=boxfill,framesep=0pt](3.0,1.9)(4.8,8.7)
\pspolygon[linewidth=.5pt,fillstyle=gradient,gradangle=0,%
gradmidpoint=0,gradbegin=solidhigh,gradend=solidlow]%
(3.0,1.9)(3.0,3.2)(3.225,7.5)(3.45,3.2)(3.675,7.5)(3.9,3.2)%
(4.125,7.5)(4.35,3.2)(4.575,7.5)(4.8,3.2)(4.8,1.9)(3.0,1.9)
\end{pspicture}
\end{document}
<--- eof --->
--
Diese finden jenes, jene dieses schön. Aber sie müssen es finden.
Suchen will es keiner.
-- Karl Kraus
More information about the PSTricks
mailing list