[pstricks] positioning hatches
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Thu Apr 22 15:19:23 CEST 2004
vin.gui wrote:
> Is there a way to adjust the position of hatches ?
> For instance, I draw a triangle, and I would like the hatches to
> go through a particular vertex of this triangle...
hope, it helps
Herbert
\documentclass{article}
\usepackage{pstricks,multido}
\begin{document}
\begin{pspicture}(5,5)
\def\hatchsep{0.2}
\psclip{\pspolygon[linecolor=red,linewidth=2pt](0,0)(2.5,5)(5,0)}
\multido{\rA=2.5+\hatchsep,\rB=2.5+-\hatchsep}{30}{%
\psline[linewidth=0.2pt](\rA,0)(\rA,5)
\psline[linewidth=0.2pt](\rB,0)(\rB,5)
}
\endpsclip
\end{pspicture}
\end{document}
--
http://TeXnik.de/
http://PSTricks.de/
http://perce.de/LaTeX/math/Mathmode-TeX.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
More information about the PSTricks
mailing list