/** * @param Color $original * The color that was the foreground in the blending process. * @param Color $blendedWith * The color that was the background in the blending process. * @param int $red * @param int $green * @param int $blue * @param float $alpha */ public function __construct(Color $original, Color $blendedWith, $red, $green, $blue, $alpha = 1) { $this->originalColor = $original; $this->blendedWithColor = $blendedWith; parent::__construct($red, $green, $blue, $alpha); }
public function __construct() { parent::__construct(255, 255, 255, 0); }