コード例 #1
0
 /**
  * @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);
 }
コード例 #2
0
ファイル: TransparantColor.php プロジェクト: hpolthof/admin
 public function __construct()
 {
     parent::__construct(255, 255, 255, 0);
 }