[OS X TeX] fillcolor in pstricks

Nitecki, Zbigniew H. Zbigniew.Nitecki at tufts.edu
Sun May 9 19:57:26 CEST 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://tug.org/pipermail/macostex-archives/attachments/20210509/1791a78f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Figtest.pdf
Type: application/pdf
Size: 3205 bytes
Desc: Figtest.pdf
URL: <https://tug.org/pipermail/macostex-archives/attachments/20210509/1791a78f/attachment.pdf>
-------------- next part --------------
----------- 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


More information about the macostex-archives mailing list.