Hue-shifting

This is an experiment in gradually and cyclically changing the hue and saturation values of an “array of pixels,” i.e. an image. The main parameter I experimented with was the nature of the increment value to both hue and saturation: whether it is a whole number, a float, a sinusoidal value, or a simple quadratic formula.

[one_fourth]27768.451[/one_fourth][one_fourth]129585.66[/one_fourth][one_fourth]701145.7[/one_fourth][one_fourth_last]377843.94[/one_fourth_last][one_fourth]734175.9[/one_fourth][one_fourth]224657.36[/one_fourth][one_fourth]254764.05[/one_fourth][one_fourth_last]259448.44[/one_fourth_last]To achieve a cyclic animation, the saturation value increments upwardly until it reaches 255 before starting to decrement back. The below is a video of the animation.

The program was run with various images to compare results; the darker the image is, the lesser the change in appearance (hue and saturation).

[one_fourth]66525.5[/one_fourth][one_fourth]907474.1[/one_fourth][one_fourth]717525.1[/one_fourth][one_fourth_last]21743.68[/one_fourth_last][one_fourth]507630.12[/one_fourth][one_fourth]396375.78[/one_fourth][one_fourth]73955.33[/one_fourth][one_fourth_last]177715.47[/one_fourth_last]

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *