Colorize

Change the values for red, green and blue in an image.

Parameters
red

The amount of red colors. >= -100 and <= -1 to reduce. 0 for no change. >= 1 and <= 100 to add.

green

The amount of green colors. >= -100 and <= -1 to reduce. 0 for no change. >= 1 and <= 100 to add.

blue

The amount of blue colors. >= -100 and <= -1 to reduce. 0 for no change. >= 1 and <= 100 to add.

Examples
use Grafika\Grafika; // Import package

//...

$filter = Grafika::createFilter('Colorize', -50, -50, -50);
$editor->apply( $image, $filter ); // Apply it to an image 

Test image:

lena

Result:

colorize