Older Newer
Wed, 27 Nov 2019 01:32:37 . . . . SyneRyder [First function definition]


Changes by last author:

Added:
= 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 &lt; y_end; y++) {

for (x = x_start; x &lt; x_end; x++) {

for (z=0; z &lt; 3; z++) {

pset(x,y,z, phaseshift( src(x,y,z), ctl(0) ));

}

}

}

return true;

}

</code>

== See Also ==

blend, contrast, gamma, gray, saturation, solarize