is there any style/package or at least some work available for
scanning through the spectrum of colors.
I have an idea, for example using
\begin{spectrum}
1
\nextcolor
2
\nextcolor
...
\nextcolor
3
\end{spectrum}
which chooses the colors according to their ordering in the rainbow
for setting some text (or a line smoothly changing its color).
So, has someone already done some work in this direction
e.g. defined a suitable sequence of colors or some other ideas?
(yes, I know palette.tex, but this is not the order of the
spectrum)
Wolfgang
--------------------------------------------------------------------
Wolfgang May E-mail: m...@informatik.uni-freiburg.de
Universitaet Freiburg http://www.informatik.uni-freiburg.de/~may/
Institut fuer Informatik D-79110 Freiburg / Germany
Wolfgang.May> Hi,
Wolfgang.May> is there any style/package or at least some work available for
Wolfgang.May> scanning through the spectrum of colors.
Wolfgang.May> I have an idea, for example using
Look at the HSB color model (see the color chapter of "LaTeX Graphics
Companion", specially pages 325-326).
\documentclass{article}
\usepackage[dvips]{pstcol}
\usepackage{multido}
\begin{document}
\psset{unit=5}
\begin{pspicture}(-1,-1)(1,1)
\multido{\n=0.1+0.1}{10}{%
\definecolor{MyColor}{hsb}{\n,1,1}
\pscircle[linewidth=0.1,linecolor=MyColor]{\n}}
\end{pspicture}
\end{document}
Denis Girou
--
---------------------------------------------------------------------------
Institut du De'veloppement et des Ressources en Informatique Scientifique |
Centre National de la Recherche Scientifique |
Ba^timent 506 - B.P. 167 - 91403 Orsay Cedex - France |
Tel. : 01.69.35.85.75 (33.1.69.35.85.75 from foreign countries) |
Messagerie : Denis...@idris.fr |
---------------------------------------------------------------------------