%%
%% This is file `xcolor2.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% xcolor.dtx  (with options: `test2')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from xcolor2.tex.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file xcolor.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
%%
%% ---------------------------------------------------------
%% Copyright (C) 2003-2004 by Dr. Uwe Kern <xcolor@ukern.de>
%% ---------------------------------------------------------
%%
%% Please send error reports and suggestions for
%% improvements to the above email address.
%%
%%
\def\XCfilesource{xcolor.dtx}%
\def\XCfileversion{v2.00}%
\def\XCfiledate{2004/07/04}%
\listfiles
\ProvidesFile{xcolor2}[\XCfiledate\space\XCfileversion\space
                       Pstricks color test (UK)]

\documentclass{article}

\usepackage{pstricks,pst-tree,pst-slpe}
\makeatletter
\@ifpackagelater{pstricks}{2004/05/12}{}{\usepackage[pst]{xcolor}}
\makeatother

\parindent0pt

\begin{document}
\title{Color extensions with the \textsf{xcolor} package --- \textsf{pstricks} examples}
\author{Dr. Uwe Kern\thanks{This file is part of the \textsf{xcolor} distribution which can be downloaded from the CTAN mirrors (\texttt{macros/latex/contrib/xcolor/}) or the homepage \texttt{www.ukern.de/tex/xcolor.html}. Please send error reports and suggestions for improvements to \texttt{xcolor@ukern.de}.}}
\date{\XCfileversion{} (\XCfiledate)}
\maketitle

\centerline{\fcolorbox{red}{yellow!50}{This document is not suitable for pdf\LaTeX! Please use \LaTeX{} + \texttt{dvips} etc.}}

\begin{figure}[htb]\caption{Color extensions --- \textsf{pstricks} example\protect\footnotemark[1]}
\bigskip
\begin{minipage}{\textwidth}\small
\begin{verbatim}
\begin{pspicture}[.5](0,-2)(3,2)
\cnode(0,0){.5cm}{root}
\cnode*[linecolor=red](3,1.5){4pt}{A}
\cnode*[linecolor=red!72.5375!blue](3,0){4pt}{B}
\cnode*[linecolor=-red](3,-1.5){4pt}{C}
\psset{nodesep=3pt}
\ncline[linecolor=green!50!red]{root}{A}
\ncline[linecolor=blue]{root}{B}
\ncline[linecolor=-green!50!red]{root}{C}
\end{pspicture}
\end{verbatim}
\end{minipage}\relax
\llap{%
\begin{pspicture}[.5](0,-2)(3,2)
\cnode(0,0){.5cm}{root}
\cnode*[linecolor=red](3,1.5){4pt}{A}
\cnode*[linecolor=red!72.5375!blue](3,0){4pt}{B}
\cnode*[linecolor=-red](3,-1.5){4pt}{C}
\psset{nodesep=3pt}
\ncline[linecolor=green!50!red]{root}{A}
\ncline[linecolor=blue]{root}{B}
\ncline[linecolor=-green!50!red]{root}{C}
\end{pspicture}}
\end{figure}
\footnotetext[1]{This is a modified version of an example from the \textsf{pstricks} manual; requires \textsf{pst-tree}.}

\begin{figure}[htb]\caption{Color extensions --- \textsf{pstricks} example\protect\footnotemark[2]}
\bigskip
\begin{minipage}{\textwidth}\small
\begin{verbatim}
\begin{pspicture}(4,1)
\psframe[fillstyle=slope,
         slopeangle=30,
         slopebegin=red!72.5375!blue,
         slopeend=-red!72.5375!blue](4,1)
\end{pspicture}
\end{verbatim}
\end{minipage}\relax
\llap{%
\begin{pspicture}(4,1)
\psframe[fillstyle=slope,
         slopeangle=30,
         slopebegin=red!72.5375!blue,
         slopeend=-red!72.5375!blue](4,1)
\end{pspicture}}
\end{figure}
\footnotetext[2]{Requires \textsf{pst-slpe}.}

\begin{figure}[htb]\caption{Color series --- \textsf{pstricks} example\protect\footnotemark[3]}
\bigskip\centering
\newcommand*\SheepHead
 {\begin{pspicture}(3,1.5)
    \pscustom[liftpen=2,fillstyle=solid,fillcolor=sheep!!+]{%
      \pscurve(0.5,-0.2)(0.6,0.5)(0.2,1.3)(0,1.5)(0,1.5)
        (0.4,1.3)(0.8,1.5)(2.2,1.9)(3,1.5)(3,1.5)(3.2,1.3)
        (3.6,0.5)(3.4,-0.3)(3,0)(2.2,0.4)(0.5,-0.2)}
    \pscircle*(2.65,1.25){0.12\psunit}% Eye
    \psccurve*(3.5,0.3)(3.35,0.45)(3.5,0.6)(3.6,0.4)% Muzzle
    % Mouth
    \pscurve(3,0.35)(3.3,0.1)(3.6,0.05)
    % Ear
    \pscurve(2.3,1.3)(2.1,1.5)(2.15,1.7)
    \pscurve(2.1,1.7)(2.35,1.6)(2.45,1.4)
  \end{pspicture}}
\newcommand*\Sheep
 {\SheepHead\SheepHead\SheepHead\SheepHead\SheepHead}
\definecolorseries{sheep}{rgb}{step}[rgb]{.95,.85,.55}{.17,.47,.37}
\resetcolorseries{sheep}
\psset{unit=0.5}
\begin{pspicture}(-8,-1.5)(8.5,7.5)
  \rput(0,6){\Sheep}
  \rput(0,4.5){\Sheep}
  \rput(0,3){\Sheep}
  \rput(0,1.5){\Sheep}
  \rput(0,0){\Sheep}
\end{pspicture}

\small
\begin{verbatim}
\newcommand*\SheepHead
 {\begin{pspicture}(3,1.5)
    \pscustom[liftpen=2,fillstyle=solid,fillcolor=sheep!!+]{%
      \pscurve(0.5,-0.2)(0.6,0.5)(0.2,1.3)(0,1.5)(0,1.5)
        (0.4,1.3)(0.8,1.5)(2.2,1.9)(3,1.5)(3,1.5)(3.2,1.3)
        (3.6,0.5)(3.4,-0.3)(3,0)(2.2,0.4)(0.5,-0.2)}
    \pscircle*(2.65,1.25){0.12\psunit}% Eye
    \psccurve*(3.5,0.3)(3.35,0.45)(3.5,0.6)(3.6,0.4)% Muzzle
    % Mouth
    \pscurve(3,0.35)(3.3,0.1)(3.6,0.05)
    % Ear
    \pscurve(2.3,1.3)(2.1,1.5)(2.15,1.7)
    \pscurve(2.1,1.7)(2.35,1.6)(2.45,1.4)
  \end{pspicture}}
\newcommand*\Sheep
 {\SheepHead\SheepHead\SheepHead\SheepHead\SheepHead}
\definecolorseries{sheep}{rgb}{step}[rgb]{.95,.85,.55}{.17,.47,.37}
\resetcolorseries{sheep}
\psset{unit=0.5}
\begin{pspicture}(-8,-1.5)(8.5,7.5)
  \rput(0,6){\Sheep}
  \rput(0,4.5){\Sheep}
  \rput(0,3){\Sheep}
  \rput(0,1.5){\Sheep}
  \rput(0,0){\Sheep}
\end{pspicture}
\end{verbatim}
\end{figure}
\footnotetext[3]{This is a modified version of an example from the \textsf{pst-fill} manual.}

\end{document}
\endinput
%%
%% End of file `xcolor2.tex'.
