Grafika\Gd\Filter\Colorize::__construct PHP Method

__construct() public method

Colorize constructor.
public __construct ( integer $red, integer $green, integer $blue )
$red integer The amount of red colors. >= -100 and <= -1 to reduce. 0 for no change. >= 1 and <= 100 to add.
$green integer The amount of green colors. >= -100 and <= -1 to reduce. 0 for no change. >= 1 and <= 100 to add.
$blue integer The amount of blue colors. >= -100 and <= -1 to reduce. 0 for no change. >= 1 and <= 100 to add.
    public function __construct($red, $green, $blue)
    {
        $this->red = round($red * 2.55);
        $this->green = round($green * 2.55);
        $this->blue = round($blue * 2.55);
    }