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

Re: Color-Cycling



> Filter1:
> makes cycling in current channel only. If you set all first three sliders
to
> the right, you get back the original image.
>
> R,G,B:
> (c+val(z,0,256))<256?c+val(z,0,256) : c+val(z,0,256)-256
> A:a

Wern, wasn't that easier to do by using modulo? Like,

(c+ctl(0))%255

should do I think... or, more close to your variant, %256

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
- I assure you, Lord Vader, my men are working as fast as they can.
- Perhaps I can find new ways to motivate them.
Star Wars
--------------------------------------------------------------------------