[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Color-Cycling
Hi guys,
There was a guy asking me for cycling pixel values. Well, here goes:
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
ctl[0]: "Red cycle"
ctl[1]: "Green cycle"
ctl[2]: "Blue cycle"
Filter 2:
Takes a value from the following channel and lets the channel cycle. If you
set the three first sliders to the right, you won't get the original image.
Only after applying the filter three times you get the original image (with
the three sliders always set to 255).
R: (g+val(z,0,256))<256?g+val(z,0,256) : g+val(z,0,256)-256
G: (b+val(z,0,256))<256?b+val(z,0,256) : b+val(z,0,256)-256
B: (r+val(z,0,256))<256?r+val(z,0,256) : r+val(z,0,256)-256
A: a
ctl[0]: "Red cycle"
ctl[1]: "Green cycle"
ctl[2]: "Blue cycle"
Greetings,
Wern