[pstricks] \psdot, fillstyle none

Hendri Adriaens spotje at gmail.com
Wed Nov 16 12:16:26 CET 2005


Hi,

how do I define dot styles that do not have a fill color at all (like
`fillstyle=none'). See below my start. The defs now contain the defs
of psds at o and psds at square respectively from pstricks.tex.

Thanks, best,
-Hendri.

\documentclass{article}
\usepackage{pstricks}
\makeatletter
\@namedef{psds at ocircle}{%
/r2 DS CLW sub def
\pst at gdot{0 0 DS \tx at SD \pst at usecolor\psfillcolor 0 0 r2 \tx at SD}}
\@namedef{psds at osquare}{%
/r1 DS .886 mul def /r2 r1 CLW sub def
\pst at gdot{r1 \tx at SQ \pst at usecolor\psfillcolor r2 \tx at SQ}}
\makeatother
\begin{document}
\pagecolor{red}
\psdot[dotstyle=ocircle,dotsize=40pt](0,0)
\psdot[dotstyle=osquare,dotsize=40pt](3,0)
\end{document}




More information about the PSTricks mailing list