[pstricks] bug in pst-ghsb, a missing %
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Fri Apr 16 19:26:55 CEST 2004
Hello,
please confirm.
Without the modification in the preamble there
is a spurious blank (the one before \else).
Seen in the output. Delete \iffalse and \fi and
the blank should be gone.
thanks,
Herbert
\documentclass{article}
\usepackage{pst-ghsb}
\newhsbcolor{ColorA}{0.7 0.1 0.8}
\newhsbcolor{ColorB}{0.7 0.9 0.8}
\newhsbcolor{ColorC}{0 0 0}
\newhsbcolor{ColorD}{0 0 1}
\iffalse% delete for second test
\makeatletter
\def\psfs at gradient{%
\ifgradientHSB
\addto at pscode{gsave
gsave \pst at usecolor\psgradbegin currenthsbcolor grestore
gsave \pst at usecolor\psgradend currenthsbcolor grestore
\psgradlines
\psgradmidpoint
\psk at gradangle
tx at GradientHSBDict begin GradientFillHSB end grestore}% hv 2004-04-16
\else
\addto at pscode{gsave
gsave \pst at usecolor\psgradbegin currentrgbcolor grestore
gsave \pst at usecolor\psgradend currentrgbcolor grestore
\psgradlines
\psgradmidpoint
\psk at gradangle
tx at GradientDict begin GradientFill end grestore}
\fi}
\makeatother
\fi% delete for second test
\pagestyle{empty}
\begin{document}
\psset{fillstyle=gradient,gradientHSB=true}
\begin{pspicture}(5,4)
\psframe[gradmidpoint=1,gradbegin=ColorA,gradend=ColorB](5,1)
\psframe[gradmidpoint=0.5,gradbegin=ColorC,gradend=ColorD](0,1)(5,2)
\psframe[gradmidpoint=1,gradbegin=ColorA,gradend=ColorB](0,2)(5,3)
\psframe[gradmidpoint=0.5,gradbegin=ColorC,gradend=ColorD](0,3)(5,4)
\end{pspicture}
\end{document}
More information about the PSTricks
mailing list