Example #1
0
File: Color.php Project: jyxo/php
 /**
  * Returns the currect color converted to grayscale.
  *
  * @return \Jyxo\Color
  */
 public function toGrayScale() : self
 {
     $gray = new self();
     $gray->setLuminance($this->getLuminance());
     return $gray;
 }