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


Changes by last author:

Added:
= solarize =

== Syntax ==

int solarize(int pixel, int s)

== Arguments ==

:pixel

::The pixel color value to modify

:s

::Solarize intensity, range 0 to 255

== Return ==

The newly solarized pixel value.

== Description ==

Applies a simple solarize effect to the image, which morphs an image with its inverse.

== Example ==

<code>

ctl[0]: "Solarize", Range=(0,255), 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, solarize( src(x,y,z), ctl(0) ));

}

}

}

return true;

}

</code>

== See Also ==

blend, contrast, gray, saturation, tone