[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Color-Cycling



> >> makes cycling in current channel only. If you set all first three
sliders
>
> Isn't colour cycling best done by mapping RGB onto HSL and cycling through
> the 'H'?

Oh well, that's the question for Wern: what did he refer to as "color
cycling". I simply showed another solution for the same effect, no matter
how is it called <g>

> I recall some discussion about having an 'H' slider but can't locate the
> code. Did we ever work out how to do that?

There was something in Mario codes long, long ago. I'll search for it...

>>> makes cycling in current channel only. If you set all first three
sliders
>>Wern, wasn't that easier to do by using modulo? Like,
>
>(c+ctl(0))%256
>
>Gosh! Ilya, I love you! MIR! :-)
>
>Why think easy, when you can do it more difficult? ;-)

In fact, all that stuff about % didn't came easy. It was long ago, then I
was looking at some Alf's code (I remember it produced diagonale-shaded
squares, but overall brightness range was uncontrollable) and I was thinking
of how can I scale modulo finction output to a specific range. Obviously, I
needed to know what is the output range for modulo. Ocassionally I met my
friend who is a matematician, so I asked him. He stared at me (expressing
that all he sees is just another idiot) and said: "Of course, modulo output
linearly from zero, inclusive, to divider, exclusive!" Hm, indeed, it WAS
obvious... anyway, I started to put modulo here and there since then, with
quite good results sometimes (I think my "Metalfalls" and mosaics are among
them). That was how I got some understanding of that.

Just a little history piece for PG <g>...

Ilyich.
--------------------------------------------------------------------------
Ilya Razmanov (a.k.a. Ilyich the Toad), Institute of Organic Chemistry RAS
http://www.chat.ru/~bufo/ - Freeware Photoshop Filters and Design Showcase
"Oh, good! You're not dead yet. I might still get a quote!" -
Miranda, Full Throttle
--------------------------------------------------------------------------