= phaseshift =
== Syntax == int phaseshift(int pixel, int intensity) == Arguments == :pixel ::The pixel color value to modify :intensity ::The intensity of the phaseshift effect (range 0 to 512) == Return == The newly phase shifted pixel value. == Description == Applies a simple phase shift effect, adjusting the hue and colors in the image. The stronger the phaseshift effect, the more psychedelic the results. == Example == <code> ctl[0]: "Phase Shift", Range=(0,512), Val=0 ForEveryTile: { for (y = y_start; y < y_end; y++) { for (x = x_start; x < x_end; x++) { for (z=0; z < 3; z++) { pset(x,y,z, phaseshift( src(x,y,z), ctl(0) )); } } } return true; }</code> == See Also == |