%% xycolor.tex from $Id: xycolor.doc,v 2.10 1994/06/15 12:46:03 ross Exp $
%%
%% XY-pic ``Colour extension'' option.
%% Copyright (c) 1993-1994 Ross Moore <ross@mpce.mq.edu.au>
%%
%% This file is part of the XY-pic package for graphs and diagrams in TeX.
%% See the companion README and INSTALL files for further information.
%% Copyright (c) 1991-1994 Kristoffer H. Rose <kris@diku.dk>
%%
%% The XY-pic package is free software; you can redistribute it and/or modify
%% it under the terms of the GNU General Public License as published by the
%% Free Software Foundation; either version 2 of the License, or (at your
%% option) any later version.
%%
%% The XY-pic package is distributed in the hope that it will be useful, but
%% WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
%% or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
%% for more details.
%%
%% You should have received a copy of the GNU General Public License along
%% with this package; if not, write to the Free Software Foundation, Inc.,
%% 675 Mass Ave, Cambridge, MA 02139, USA.
%%
\ifx\xyloaded\undefined \input xy \fi
\xyprovide{color}{Colour extension}{\stripRCS$Revision: 2.10 $}%
 {Ross Moore}{ross@mpce.mq.edu.au}%
 {Mathematics Department, Macquarie University, NSW~2109, Australia}
 \xyrequire{line}
 \xycatcodes
\xydef@\xycolorwarning@@{\xycolormessage@
 \gdef\xycolowarning@@{\xycolormessage@
 \xywarning@{...no further colour warnings will be given.}%
 \global\let\xycolorwarning@@=\relax }}
\xydef@\xycolormessage@{%
 \xywarning@{Current driver does not support colour.}}%
\xydef@\xycolor@#1{\xycolorwarning@@}
\xydef@\newxycolor#1#2{\newxycolor@{#1}{#2}{}}
\xydef@\newxycolor@#1#2#3{%
 \expandafter\let\expandafter\next@\csname *shape@#1@\endcsname
 \ifx\next@\relax \newxystyle{#1}{\xycolor@{#2}}\relax
 \else \fi \def\tmp@{\relax}\DNii@{#3}%
 \ifx\nextii@\tmp@ \newxystyle{#1}{\xycolor@{#2}}\relax\fi }
\newxycolor@{black}{0 gray}\relax
\newxycolor@{white}{1 gray}\relax
\newxycolor@{gray}{.5 gray}\relax
\newxycolor@{red}{1 0 0 rgb}\relax
\newxycolor@{green}{0 1 0 rgb}\relax
\newxycolor@{blue}{0 0 1 rgb}\relax
\newxycolor@{cyan}{0 1 1 rgb}\relax
\newxycolor@{magenta}{1 0 1 rgb}\relax
\newxycolor@{yellow}{1 1 0 rgb}\relax
\xydef@\UseCrayolaColors{%
 \xyinputorelse@{xyps-col}{\xyerror@{Could not load xyps-col}{}}}
\xyendinput
