[OS X TeX] fillcolor in pstricks

Nitecki, Zbigniew H. Zbigniew.Nitecki at tufts.edu
Mon May 10 07:55:35 EDT 2021


Thanks, Luis, and stupid me!  It works fine.
Z

Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155

telephones:
Office    (617)627-3843
Dept.    (617)627-3234
Dept. fax    (617)627-3966
http://www.tufts.edu/~znitecki/




On May 10, 2021, at 4:23, Luis Fernando Sequeira <lfsequeira at gmail.com<mailto:lfsequeira at gmail.com>> wrote:

Quick and silly question:  When in pstricks I create a region via \pscustom which I want to fill with vlines (or lines) I don?t seem to be able to get these lines in any color
other than black.  Is there a command to specify a color for the filling lines?


Yes, there is! See:

The code
\usepackage{pstricks, pst-plot}

\begin{document}

      \begin{pspicture}(-2,-3)(2,2.2)
\psset{unit=2cm}
\pscustom[linewidth=0, fillstyle=hlines, hatchcolor=red]{%
\pspolygon(1,0)(1,1)(2,1)(2,0.5)(3,0.5)(3,0.33)(4,0.33)(4,0.25)(4,0)
}


\pscustom[linewidth=0, fillstyle=vlines, hatchcolor=blue]{%
\pspolygon(1,0)(1,0.5)(2,0.5)(2,0.33)(3,0.33)(3,0.25)(4,0.25)(4,0)
}




      \end{pspicture}

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
               https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20210510/90e78114/attachment.htm>


More information about the MacOSX-TeX mailing list