[OS X TeX] fillcolor in pstricks

Nitecki, Zbigniew H. Zbigniew.Nitecki at tufts.edu
Sun May 9 13:57:26 EDT 2021


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?

The code
\usepackage{pstricks, pst-plot}

\begin{document}

        \begin{pspicture}(-2,-3)(2,2.2)
\psset{unit=2cm}
\pscustom[linewidth=0, fillstyle=hlines, fillcolor=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, fillcolor=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}



yields the picture


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/




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20210509/1791a78f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Figtest.pdf
Type: application/pdf
Size: 3205 bytes
Desc: Figtest.pdf
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20210509/1791a78f/attachment.pdf>


More information about the MacOSX-TeX mailing list