[pstricks] Fill polygon with wavy pattern
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Thu Feb 20 16:55:24 CET 2003
Herbert Voss schrieb:
> Martin Buchmann schrieb:
>
>> Feel free to use it, if you need things similar like this. Feel free to
>> correct it, if you find an error.
>
>
> a solution without multido.
sorry, I sent the wrong example ...
Herbert
\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.0033cm,yunit=0.2cm}
\begin{pspicture}(0,-1)(720,1)
\pscustom[fillstyle=solid]{%
\psplot[linewidth=.5pt]{0}{720}{x sin}%
}
\end{pspicture}
}
\begin{document}
\psboxfill{\wave}
\begin{pspicture}(3.0,1.9)(4.8,8.7)
\psframe[fillstyle=boxfill](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}
More information about the PSTricks
mailing list