int phaseshift(int pixel, int intensity)
The newly phase shifted pixel value.
Applies a simple phase shift effect, adjusting the hue and colors in the image. The stronger the phaseshift effect, the more psychedelic the results.
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; }