[texhax] gradient in latex

Martin Heller mr_heller at yahoo.dk
Thu Aug 28 16:09:05 CEST 2008


mahi mahi skrev:

> How can i created rectangular gradient in latex without using .eps.

\documentclass{minimal}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
    \shade[left color=white,right color=black]
        (0,0) rectangle (4,2);
    \shade[top color=white,bottom color=black]
        (5,0) rectangle (9,2);
\end{tikzpicture}
\end{document}



More information about the texhax mailing list