src/SyHolloway/MrColor/Extension/Toolkit.php
public function merge(Color $color1, Color $color2, $percentage = 50)
    {
        return new Color(array(
            'red' => $this->getMergedColorPart('red', $color1, $color2, $percentage),
            'green' => $this->getMergedColorPart('green', $color1, $color2, $percentage),
            'blue' => $this->getMergedColorPart('blue', $color1, $color2, $percentage)
        ));
    }
public function merge(Color $color1, Color $color2, $percentage = 50)
    {
        return new Color(array(
            'red' => $this->getMergedColorPart('red', $color1, $color2, $percentage),
            'green' => $this->getMergedColorPart('green', $color1, $color2, $percentage),
            'blue' => $this->getMergedColorPart('blue', $color1, $color2, $percentage)
        ));
    }
public function merge ( Color $ color1 , Color $ color2 , $ percentage = 50 ) { return new Color ( array ( 'red' => $ this -> getMergedColorPart ( 'red' , $ color1 , $ color2 , $ percentage ) , 'green' => $ this -> getMergedColorPart ( 'green' , $ color1 , $ color2 , $ percentage ) , 'blue' => $ this -> getMergedColorPart ( 'blue' , $ color1 , $ color2 , $ percentage ) ) ) ; }
Merges the current color with a second color with an optional percentage

@param object $color1 Color object
@param object $color2 Color object
@param integer $percentage
@return object Color
Merges the current color with a second color with an optional percentage